-
1. Re: Problem in Parameterizing the JSFUnit Test?
ssilvert Dec 6, 2010 8:23 AM (in response to sandeepnarula)I assume you have read this?
http://community.jboss.org/wiki/ParameterizingJSFUnitTests
Can you show me the full test source and the URL you typed into your browser?
Stan
-
2. Re: Problem in Parameterizing the JSFUnit Test?
sandeepnarula Dec 7, 2010 7:45 AM (in response to ssilvert)Hi Stan,
Yes,i have read http://community.jboss.org/wiki/ParameterizingJSFUnitTests .
The code that i have used is:
JSFSession jsfSession = new JSFSession("/index.jsf");
Map<String, String[]> paramMap = jsfSession.getRedirectorRequestParams();
String parameterValue = paramMap.get("parameter")[0];I have implemented the above code in the setUp().
The URL that i have used is as follows:
-
3. Re: Problem in Parameterizing the JSFUnit Test?
ssilvert Dec 8, 2010 9:20 AM (in response to sandeepnarula)I think this is a bug. I'll take a closer look today.
Stan
-
4. Re: Problem in Parameterizing the JSFUnit Test?
ssilvert Dec 8, 2010 9:32 AM (in response to ssilvert)Created Jira task: https://jira.jboss.org/browse/JSFUNIT-263
-
5. Re: Problem in Parameterizing the JSFUnit Test?
ssilvert Dec 8, 2010 5:29 PM (in response to sandeepnarula)I can't reproduce this. Can you verify that your JSFUnitFilter is set up correctly in web.xml?
Can you attach a simple WAR that reproduces this problem?
Stan
-
6. Re: Problem in Parameterizing the JSFUnit Test?
sandeepnarula Dec 10, 2010 12:37 AM (in response to ssilvert)Hi Stan,
Thanks a lot for your concern.
I have already posted the web.xml for JSFUnit on jira task: https://jira.jboss.org/browse/JSFUNIT-263
-
7. Re: Problem in Parameterizing the JSFUnit Test?
ssilvert Dec 10, 2010 8:29 AM (in response to sandeepnarula)Sandeep Narula wrote:
Hi Stan,
Thanks a lot for your concern.
I have already posted the web.xml for JSFUnit on jira task: https://jira.jboss.org/browse/JSFUNIT-263
Right. Sorry. Can you post the rest of your code? Like I said, this is working for me and I can't figure out what is different in your project.
Stan