users@jersey.java.net

Re: [Jersey] Re: HTTP codes changing in Glassfish V3 ?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Tue, 13 Oct 2009 11:01:36 +0200

so, this ok() is a range if 200 possible values ?

my question is regarding unit the integration tests.. I am doing:

                int confirmationResponseCode = confirmRegistration();
                assertTrue("unable to confirm the fake registration",
Status.OK.getStatusCode() == confirmationResponseCode);


Is there a way of checking OK for all ranges in the integration test?

for now I am just testing "value>199 && value<300"

------ the full test case code is here:

http://kenai.com/projects/puj/sources/arena/content/arena-client/src/test/java/com/kenai/puj/arena/client/test/UserManagementTestCase.java