0 Replies Latest reply on Mar 20, 2007 7:36 PM by bytor99999

    SeamTest and FacesRequest

      I have been trying to create FacesRequests in a util class, so that I could re-use the same FacesRequest in other SeamTests. However, I seem to be getting a NullPointerException when I do this. The NPE comes from the SeamTest class in line 407 which is

      phases.beforePhase( new PhaseEvent(facesContext, PhaseId.RESTORE_VIEW, MockLifecycle.INSTANCE) );

      The phases variable is null and hence the NPE. :)

      Should it be possible to create FacesRequest in a different class for re-use, or must it be within a class that extends SeamTest.

      Thanks