7 Replies Latest reply on Dec 10, 2010 8:29 AM by Stan Silvert

    Problem in Parameterizing the JSFUnit Test?

    Sandeep Narula Newbie

      Hello,

      I am trying to pass the parametre in the URL for running the JSFUnit test case and retriving the parameter using the following:

       

      JSFSession jsfSession = new JSFSession("/index.jsf");
      Map<String, String[]> paramMap = jsfSession.getRedirectorRequestParams();
      String parameterValue = paramMap.get("parameter")[0];

      I have passed parameter in the URL but i am getting the NullPointerException in the following:

      String parameterValue = paramMap.get("parameter")[0];