0 Replies Latest reply on Mar 13, 2013 11:35 AM by Razvan Ionescu

    [JSFUnit 2.0 + JSF 1.2 + Weblogic] NullPointerException on JSFServerSession using @InitialPage

    Razvan Ionescu Newbie

      Hello,

       

      I am trying to use the JSFUnit 2.0 for testing applications developed in Oracle ADF using the JDeveloper IDE and the Weblogic 10.3.5 application server. Have attempted to use the getting started guide from JSFUnit 2.0 and managed to make my application EAR deploy on WLS 10.3 using arquillian-wls-remote-10.3 however when performing the test :

       

      @Test
      @InitialPage("/faces/test.jspx")
      public void testInitialPage(JSFServerSession server) throws IOException, InterruptedException {
           // Test navigation to initial viewID
          
           System.out.println("\n\n Injected server is ---" + server);

       

           // Assert that the greeting component is in the component tree and rendered
           UIComponent greeting = server.findComponent("greeting");
           Assert.assertTrue(greeting.isRendered());
      }

       

      - the server is always null.

       

      Have also configured the weld-servlet, it works ok, however could not manage to get a hold on the JSFSession using the @InitialPage recommended approach.

       

      Is there any way to enable more debug in order to check the context?

       

      Thank you,

      Razvan