Thanks Paul. I shall remember to check such things from the next time.
-Naresh
Paul Sandoz wrote:
> Hi Naresh,
>
> I am got a failure when i run the tests:
>
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.775 
> sec <<< FAILURE!
> testResources(com.sun.jersey.samples.servlet.resources.MasterResourceBeanTest)  
> Time elapsed: 5.704 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: Expected reponse not seen with 
> query param '?rep=2'
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.assertTrue(Assert.java:20)
>         at 
> com.sun.jersey.samples.servlet.resources.MasterResourceBeanTest.doTestResource3Page(MasterResourceBeanTest.java:200) 
>
>         at 
> com.sun.jersey.samples.servlet.resources.MasterResourceBeanTest.testResources(MasterResourceBeanTest.java:115) 
>
>
>
> When the query parameter "rep" equals "2" then a form is returned. You 
> should be using Form instead of checking the encoded value 
> explicitly.  I modified the code.
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>