Marcelo Romulo Fernandes

Results 21 comments of Marcelo Romulo Fernandes

Is it possible to configure `AdminFilter` and `LogoutServlet` at `web-fragment.xml` instead of using @WebFilter and @WebServlet annotations?

> Sure, we can do that if it's causing problems in SpringBoot integration. Can you create a separated issue? Anyway, it will not solve the problem. Tomcat will try to...

> But in [admin-starter-tomcat](https://github.com/adminfaces/admin-starter-tomcat) we add DI capability by [adding CDI implementation](https://github.com/adminfaces/admin-starter-tomcat/blob/5d532f304d2d12d3bac718ca13b235681e2b03f8/pom.xml#L29-L40) and configuring BeanManager in [META-INF/context.xml](https://github.com/adminfaces/admin-starter-tomcat/blob/master/src/main/webapp/META-INF/context.xml) and weld in [web.xml](https://github.com/adminfaces/admin-starter-tomcat/blob/master/src/main/webapp/WEB-INF/web.xml#L40-L46), that doesn't help in this case also? It works...

> I see, It is more a springboot limitation than an AdminFaces issue. Can I close this issue or we can try something else? Admin Template uses CDI injection in...

hi @larmic The problem is related to scope of the JSF bean (session, request, view). Take a look at [how to test session scope beans with spring boot.](http://stackoverflow.com/questions/35921990/spring-boot-testing-session-scope-beans)

I use Mock strategy to test JSF beans. See [JsfIT](https://github.com/joinfaces/joinfaces/blob/master/jsf-spring-boot-integration/src/test/java/org/joinfaces/mock/JsfIT.java) and [JsfMock](https://github.com/joinfaces/joinfaces/blob/master/jsf-spring-boot-integration/src/test/java/org/joinfaces/mock/JsfMock.java) classes. They were inspired [here.](http://ovaraksin.blogspot.com.br/2014/03/set-up-jsf-environment-for-junit-tests.html)

Acceptance test are built with Selenium Webdriver and Page Objects Pattern. However, [in this case](https://github.com/joinfaces/joinfaces-example/tree/master/src/test/java/org/joinfaces/example/view), I don't need to inject @Named bean into test classes.

hi @larmic , Of course it seems a great improvement for testing. I've just linked it at [several joinfaces wiki pages](https://github.com/joinfaces/joinfaces/wiki). Huge thanks.

hi @larmic , Is it possible to integrate joinfaces-bean-test code into joinfaces? We created [joinfaces-test sub module](https://github.com/joinfaces/joinfaces/tree/master/joinfaces-test) to include test facility classes to JSF and spring boot. Is there any...

I think we can close it because @larmic is improving [JoinFaces Bean Test](https://github.com/larmic/joinfaces-bean-test) regularly.