Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.api.rs.servererrorexception.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 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 voidassertCause(jakarta.ws.rs.WebApplicationException e, Throwable 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) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected 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:
-
-
Constructor Details
-
JAXRSClientIT
public JAXRSClientIT()
-
-
Method Details
-
constructorStatusTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStatusThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStatusNullThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntNotValidStatusThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorResponseTest
- Throws:
JAXRSCommonClient.Fault
-
constructorResponseThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStatusThrowableTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStatusThrowableThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStatusNullThrowableThrowsExceptionTest
@Test public void constructorStatusNullThrowableThrowsExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
constructorIntThrowableTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntThrowableThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorIntNotValidStatusThrowableThrowsExceptionTest
@Test public void constructorIntNotValidStatusThrowableThrowsExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
constructorResponseThrowableTest
- Throws:
JAXRSCommonClient.Fault
-
constructorResponseThrowableThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusNullThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntNotValidStatusThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringResponseTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringResponseThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusThrowableTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusThrowableThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringStatusNullThrowableThrowsExceptionTest
@Test public void constructorStringStatusNullThrowableThrowsExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntThrowableTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntThrowableThrowsIAETest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringIntNotValidStatusThrowableThrowsExceptionTest
@Test public void constructorStringIntNotValidStatusThrowableThrowsExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
constructorStringResponseThrowableTest
- Throws:
JAXRSCommonClient.Fault
-
constructorStringResponseThrowableThrowsIAETest
- 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
-
assertCause
protected void assertCause(jakarta.ws.rs.WebApplicationException e, Throwable expected) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
getStatusesFromFamily
-
getStatusesOutsideFamily
-
assertMessage
protected void assertMessage(jakarta.ws.rs.WebApplicationException e) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-