Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.jaxrs21.ee.client.rxinvoker.JAXRSClientIT
- Direct Known Subclasses:
JAXRSClientIT
@ExtendWith(org.jboss.arquillian.junit5.ArquillianExtension.class)
public class JAXRSClientIT
extends JAXRSCommonClient
- Since:
- 2.1
-
Nested Class Summary
Nested classes/interfaces inherited from class ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
JAXRSCommonClient.Fault, JAXRSCommonClient.Property, JAXRSCommonClient.Request
-
Field Summary
FieldsFields 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 void
protected void
protected void
assertOkAndLog
(jakarta.ws.rs.core.Response response, jakarta.ws.rs.core.Response.Status status) protected void
protected void
protected void
checkFutureOkResponse
(Future<jakarta.ws.rs.core.Response> future) protected void
checkFutureResponseStatus
(Future<jakarta.ws.rs.core.Response> future, jakarta.ws.rs.core.Response.Status status) protected void
checkFutureString
(Future<String> future, String expectedValue) static org.jboss.shrinkwrap.api.spec.WebArchive
protected <T> jakarta.ws.rs.core.GenericType<T>
createGeneric
(Class<T> clazz) void
void
void
void
void
void
void
void
void
void
void
void
void
getTest()
void
void
void
void
void
void
void
void
void
void
void
void
headTest()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
postTest()
void
void
void
void
void
void
void
void
void
void
void
void
putTest()
void
void
void
void
void
void
void
void
void
void
void
protected jakarta.ws.rs.client.Invocation.Builder
startBuilderForMethod
(String methodName) protected jakarta.ws.rs.client.CompletionStageRxInvoker
startRxInvokerForMethod
(String methodName) Create CompletionStageRxInvoker for given resource method and start timevoid
void
void
void
void
void
void
void
void
void
void
void
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
-
millis
protected long millis -
callbackResult
protected int callbackResult -
callbackException
-
-
Constructor Details
-
JAXRSClientIT
public JAXRSClientIT()
-
-
Method Details
-
createDeployment
@Deployment(testable=false) public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment() throws IOException- Throws:
IOException
-
deleteTest
- Throws:
JAXRSCommonClient.Fault
-
deleteThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithClassThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithClassThrowsNoWebApplicationExceptionForResponseTest
@Test public void deleteWithClassThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeThrowsProcessingExceptionTest
@Test public void deleteWithGenericTypeThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeThrowsWebApplicationExceptionTest
@Test public void deleteWithGenericTypeThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest
@Test public void deleteWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getTest
- Throws:
JAXRSCommonClient.Fault
-
getThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
getWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
getWithClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getWithClassThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getWithClassThrowsNoWebApplicationExceptionForResponseTest
@Test public void getWithClassThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeThrowsWebApplicationExceptionTest
@Test public void getWithGenericTypeThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest
@Test public void getWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
headTest
- Throws:
JAXRSCommonClient.Fault
-
headThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
methodTest
- Throws:
JAXRSCommonClient.Fault
-
methodThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithClassThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithClassThrowsNoWebApplicationExceptionForResponseTest
@Test public void methodWithClassThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeThrowsProcessingExceptionTest
@Test public void methodWithGenericTypeThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeThrowsWebApplicationExceptionTest
@Test public void methodWithGenericTypeThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest
@Test public void methodWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithEntityThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithStringClassWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithResponseClassWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithClassWithEntityThrowsProcessingExceptionTest
@Test public void methodWithClassWithEntityThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithClassWithEntityThrowsWebApplicationExceptionTest
@Test public void methodWithClassWithEntityThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithClassWithEntityThrowsNoWebApplicationExceptionForResponseTest
@Test public void methodWithClassWithEntityThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringWithEntityTest
@Test @Disabled public void methodWithGenericTypeStringWithEntityTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeResponseWithEntityTest
@Test @Disabled public void methodWithGenericTypeResponseWithEntityTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeWithEntityThrowsProcessingExceptionTest
@Test public void methodWithGenericTypeWithEntityThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeWithEntityThrowsWebApplicationExceptionTest
@Test public void methodWithGenericTypeWithEntityThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeWithEntityThrowsNoWebApplicationExceptionForResponseTest
@Test public void methodWithGenericTypeWithEntityThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsTest
- Throws:
JAXRSCommonClient.Fault
-
optionsThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithClassThrowsWebApplicationExceptionTest
@Test public void optionsWithClassThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithClassThrowsNoWebApplicationExceptionForResponseTest
@Test public void optionsWithClassThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeThrowsProcessingExceptionTest
@Test public void optionsWithGenericTypeThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeThrowsWebApplicationExceptionTest
@Test public void optionsWithGenericTypeThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest
@Test public void optionsWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postTest
- Throws:
JAXRSCommonClient.Fault
-
postThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
postWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
postWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
postWithClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
postWithClassThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
postWithClassThrowsNoWebApplicationExceptionForResponseTest
@Test public void postWithClassThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeThrowsWebApplicationExceptionTest
@Test public void postWithGenericTypeThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest
@Test public void postWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putTest
- Throws:
JAXRSCommonClient.Fault
-
putThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
putWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
putWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
putWithClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
putWithClassThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
putWithClassThrowsNoWebApplicationExceptionForResponseTest
@Test public void putWithClassThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeThrowsWebApplicationExceptionTest
@Test public void putWithGenericTypeThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest
@Test public void putWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceTest
- Throws:
JAXRSCommonClient.Fault
-
traceThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithClassThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithClassThrowsNoWebApplicationExceptionForResponseTest
@Test public void traceWithClassThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeThrowsProcessingExceptionTest
@Test public void traceWithGenericTypeThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeThrowsWebApplicationExceptionTest
@Test public void traceWithGenericTypeThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest
@Test public void traceWithGenericTypeThrowsNoWebApplicationExceptionForResponseTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
startRxInvokerForMethod
Create CompletionStageRxInvoker for given resource method and start time -
startBuilderForMethod
-
assertOkAndLog
protected void assertOkAndLog(jakarta.ws.rs.core.Response response, jakarta.ws.rs.core.Response.Status status) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
checkFutureResponseStatus
protected void checkFutureResponseStatus(Future<jakarta.ws.rs.core.Response> future, jakarta.ws.rs.core.Response.Status status) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
checkFutureOkResponse
protected void checkFutureOkResponse(Future<jakarta.ws.rs.core.Response> future) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
checkFutureString
protected void checkFutureString(Future<String> future, String expectedValue) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertExceptionWithWebApplicationExceptionIsThrownAndLog
protected void assertExceptionWithWebApplicationExceptionIsThrownAndLog(Future<?> future) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertExceptionWithProcessingExceptionIsThrownAndLog
protected void assertExceptionWithProcessingExceptionIsThrownAndLog(Future<?> future) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertProcessingExceptionIsCauseAndLog
protected void assertProcessingExceptionIsCauseAndLog(ExecutionException e) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertWebApplicationExceptionIsCauseAndLog
protected void assertWebApplicationExceptionIsCauseAndLog(ExecutionException e) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
createGeneric
-