users@jersey.java.net

"simple-servlet" sample tests

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 24 Sep 2008 13:18:36 +0200

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.