Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.api.rs.redirectexception.JAXRSClientIT
-
Nested Class Summary
Nested classes/interfaces inherited from class ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
JAXRSCommonClient.Fault, JAXRSCommonClient.Property, JAXRSCommonClient.Request -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final jakarta.ws.rs.core.Response.Status.Familyprotected static final Stringprotected static final URIprotected static final StringFields inherited from class ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
_contextRoot, _generalURI, _hostname, _port, _redirect, _saveState, _servlet, _state, _testCase, _testName, _tsHome, _useSavedState, GET, GF_SUFFIX, GOLDENFILE, GOLDENFILEDIR, HTTP10, HTTP11, indent, newline, REQUEST, REQUEST_HEADERS, SEARCH_STRING, servletAdaptor, SERVLETHOSTPROP, SERVLETPORTPROP, SL, STATUS_CODE, TEST_PROPS, TESTDIR, TSHOME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidassertLocation(jakarta.ws.rs.RedirectionException e, URI expected) protected voidassertMessage(jakarta.ws.rs.WebApplicationException e) protected static voidassertResponse(jakarta.ws.rs.WebApplicationException e, jakarta.ws.rs.core.Response.Status status) protected voidassertResponse(jakarta.ws.rs.WebApplicationException e, jakarta.ws.rs.core.Response.Status status, String host) Check the given exception contains a prebuilt response containing the http header HOSTprotected jakarta.ws.rs.core.ResponsebuildResponse(jakarta.ws.rs.core.Response.Status status) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected static List<jakarta.ws.rs.core.Response.Status>protected static List<jakarta.ws.rs.core.Response.Status>Methods inherited from class ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
assertCause, assertContains, assertContains, assertContainsIgnoreCase, assertContainsIgnoreCase, assertEquals, assertEqualsBool, assertEqualsInt, assertEqualsLong, assertNotNull, assertNull, assertResponseBodyContain, assertResponseHeadersContain, buildAccept, buildContentType, buildHeaderMediaType, buildRequest, buildRequest, buildRequest10, cleanup, clearProperty, clearTestProperties, createHttpRequest, editWebXmlString, fault, getAbsoluteUrl, getAbsoluteUrl, getContextRoot, getLocalInterfaceInfo, getResponseBody, getResponseHeaders, getResponseStatusCode, getServletName, getStatusCode, invoke, isNullOrEmpty, logMsg, logTrace, objectsToString, objectsToString, setContextRoot, setProperty, setProperty, setProperty, setServletName, setTestDir, setTestProperties, setup, setWebTestCaseProperties, setWebTestCaseRequest, toString
-
Field Details
-
FAMILY
public static final jakarta.ws.rs.core.Response.Status.Family FAMILY -
MESSAGE
- See Also:
-
HOST
- See Also:
-
LOCATION
-
-
Constructor Details
-
JAXRSClientIT
public JAXRSClientIT()
-
-
Method Details
-
constructorStatusUriTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStatusUriThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStatusNullUriThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntUriTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntUriThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntNotValidStatusThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorResponseTest
- Throws:
JAXRSCommonClient.Fault
-
constructorResponseThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusUriTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusUriThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusNullUriThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntUriTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntUriThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntNotValidStatusThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringResponseTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringResponseThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
buildResponse
protected jakarta.ws.rs.core.Response buildResponse(jakarta.ws.rs.core.Response.Status status) -
assertResponse
protected static void assertResponse(jakarta.ws.rs.WebApplicationException e, jakarta.ws.rs.core.Response.Status status) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertResponse
protected void assertResponse(jakarta.ws.rs.WebApplicationException e, jakarta.ws.rs.core.Response.Status status, String host) throws JAXRSCommonClient.Fault Check the given exception contains a prebuilt response containing the http header HOST- Throws:
JAXRSCommonClient.Fault
-
assertLocation
protected static void assertLocation(jakarta.ws.rs.RedirectionException e, URI expected) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
getStatusesFromFamily
-
getStatusesOutsideFamily
-
assertMessage
protected void assertMessage(jakarta.ws.rs.WebApplicationException e) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-