0 Replies Latest reply on May 29, 2013 8:49 AM by Megha Sanghvi

    getSessionContext() returns null in test case project

    Megha Sanghvi Newbie

      Hi,

       

      I am creating test case project for one of my application. When I tried to access org.jboss.seam.Context Sessioncontenxt object it will always return null.

       

      I tried using below code but it returns null value when tried to access Context.getSessionContenxt().

       

      CodeBase

      Boolean isQreg= (Boolean) Contexts.getSessionContext().get("Flag");

       

      Result:

      NullPointerException at Contexts.getSessionContenxt();

       

       

      Thanks,

      Megha/