I'm using joinfaces v3 from some time. But I'm experiencing problems regarding tests about the viewScoped beans.
In the documentation I saw that the equivalent spring scope of ViewScoped annotation is configured automatically by Jsf Spring Boot Starter
But when I try to test a @Component with one of the following annotations @Scope("view") @ViewScoped
I always get a nullPointer on the class org.joinfaces.autoconfigure.integration.ViewScope in the following line
FacesContext.getCurrentInstance().getViewRoot().getViewMap()
because FacesContext.getCurrentInstance is null
Do we have an example on how to test this kind of beans with joinfaces? Thank you