Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.common.client.JaxrsCommonClient
ee.jakarta.tck.ws.rs.ee.rs.client.syncinvoker.JAXRSClientIT
@ExtendWith(org.jboss.arquillian.junit5.ArquillianExtension.class)
public class JAXRSClientIT
extends JaxrsCommonClient
-
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.client.JaxrsCommonClient
clients, isTestCaseAfterInvocation, testCase
Fields 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 <T extends Exception>
voidassertException
(Runnable runnable, Class<T> exception) protected static void
assertProcessingException
(Runnable runnable) protected static void
assertResponseOk
(jakarta.ws.rs.core.Response response) protected static void
assertResponseString
(String response, String expectedValue) protected static void
assertStatusAndLog
(jakarta.ws.rs.core.Response response, jakarta.ws.rs.core.Response.Status status) protected static void
assertWebApplicationException
(Runnable runnable) static org.jboss.shrinkwrap.api.spec.WebArchive
protected static <T> jakarta.ws.rs.client.Entity<T>
createEntity
(T entity) protected static <T> jakarta.ws.rs.core.GenericType<T>
createGeneric
(Class<T> clazz) protected jakarta.ws.rs.client.SyncInvoker
createSyncInvokerForMethod
(String methodName) Create SyncInvoker for given resource method and start timeprotected jakarta.ws.rs.client.SyncInvoker
void
void
void
void
void
void
void
void
void
void
void
void
void
getTest()
void
protected String
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
void
void
void
void
void
void
void
void
void
void
void
void
Methods inherited from class ee.jakarta.tck.ws.rs.common.client.JaxrsCommonClient
addHeader, addProvider, bufferEntity, buildRequest, buildRequest, cleanup, getMetadata, getProvidersToRegister, getResponse, getResponseBody, getResponseBody, getResponseHeaders, getResponseStatusCode, getTestCase, invoke, listToString, printClientCall, setAsynchronousProcessing, setPrintEntity, setProperty, setRequestContentEntity, setTestProperties, setTextCaser, setup, setWebTestCaseProperties, splitByColon
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, buildRequest10, clearProperty, clearTestProperties, createHttpRequest, editWebXmlString, fault, getAbsoluteUrl, getAbsoluteUrl, getContextRoot, getLocalInterfaceInfo, getServletName, getStatusCode, isNullOrEmpty, logMsg, logTrace, objectsToString, objectsToString, setContextRoot, setProperty, setProperty, setServletName, setTestDir, setTestProperties, setWebTestCaseProperties, setWebTestCaseRequest, toString
-
Field Details
-
millis
protected long millis
-
-
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
-
deleteThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithStringClassThrowsProcessingExceptionTest
@Test public void deleteWithStringClassThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithStringClassThrowsWebApplicationExceptionTest
@Test public void deleteWithStringClassThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithResponseClassThrowsNoWebApplicationExceptionTest
@Test public void deleteWithResponseClassThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeStringThrowsProcessingExceptionTest
@Test public void deleteWithGenericTypeStringThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void deleteWithGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
deleteWithGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void deleteWithGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getTest
- Throws:
JAXRSCommonClient.Fault
-
getThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
getWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
getWithStringClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getWithStringClassThrowsWebApplicationExceptionTest
@Test public void getWithStringClassThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getWithResponseClassThrowsNoWebApplicationExceptionTest
@Test public void getWithResponseClassThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeStringThrowsProcessingExceptionTest
@Test public void getWithGenericTypeStringThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void getWithGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getWithGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void getWithGenericTypeResponseThrowsNoWebApplicationExceptionTest() 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
-
methodWithStringClassThrowsProcessingExceptionTest
@Test public void methodWithStringClassThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithStringClassThrowsWebApplicationExceptionTest
@Test public void methodWithStringClassThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithResponseClassThrowsNoWebApplicationExceptionTest
@Test public void methodWithResponseClassThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringThrowsProcessingExceptionTest
@Test public void methodWithGenericTypeStringThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void methodWithGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void methodWithGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithEntityThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithStringClassWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithResponseClassWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithStringClassWithEntityThrowsProcessingExceptionTest
@Test public void methodWithStringClassWithEntityThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithStringClassWithEntityThrowsWebApplicationExceptionTest
@Test public void methodWithStringClassWithEntityThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithResponseClassWithEntityThrowsNoWebApplicationExceptionTest
@Test public void methodWithResponseClassWithEntityThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeResponseWithEntityTest
- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringWithEntityThrowsProcessingExceptionTest
@Test public void methodWithGenericTypeStringWithEntityThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeStringWithEntityThrowsWebApplicationExceptionTest
@Test public void methodWithGenericTypeStringWithEntityThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
methodWithGenericTypeResponseWithEntityThrowsNoWebApplicationExceptionTest
@Test public void methodWithGenericTypeResponseWithEntityThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsTest
- Throws:
JAXRSCommonClient.Fault
-
optionsThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithStringThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithStringThrowsWebApplicationExceptionTest
@Test public void optionsWithStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithResponseThrowsNoWebApplicationExceptionTest
@Test public void optionsWithResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeStringThrowsProcessingExceptionTest
@Test public void optionsWithGenericTypeStringThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void optionsWithGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
optionsWithGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void optionsWithGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postTest
- Throws:
JAXRSCommonClient.Fault
-
postThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
postWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
postWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
postWithStringClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
postWithStringClassThrowsWebApplicationExceptionTest
@Test public void postWithStringClassThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postWithResponseClassThrowsNoWebApplicationExceptionTest
@Test public void postWithResponseClassThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeStringThrowsProcessingExceptionTest
@Test public void postWithGenericTypeStringThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void postWithGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
postWithGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void postWithGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putTest
- Throws:
JAXRSCommonClient.Fault
-
putThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
putWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
putWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
putWithStringClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
putWithStringClassThrowsWebApplicationExceptionTest
@Test public void putWithStringClassThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putWithResponseClassThrowsNoWebApplicationExceptionTest
@Test public void putWithResponseClassThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeStringThrowsProcessingExceptionTest
@Test public void putWithGenericTypeStringThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void putWithGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
putWithGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void putWithGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceTest
- Throws:
JAXRSCommonClient.Fault
-
traceThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithStringClassTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithResponseClassTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithStringClassThrowsProcessingExceptionTest
@Test public void traceWithStringClassThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithStringClassThrowsWebApplicationExceptionTest
@Test public void traceWithStringClassThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithResponseClassThrowsNoWebApplicationExceptionTest
@Test public void traceWithResponseClassThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeStringTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeResponseTest
- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeStringThrowsProcessingExceptionTest
@Test public void traceWithGenericTypeStringThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void traceWithGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
traceWithGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void traceWithGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getUrl
-
createSyncInvokerForMethod
Create SyncInvoker for given resource method and start time -
createSyncInvokerWrongUrl
protected jakarta.ws.rs.client.SyncInvoker createSyncInvokerWrongUrl() -
assertStatusAndLog
protected static void assertStatusAndLog(jakarta.ws.rs.core.Response response, jakarta.ws.rs.core.Response.Status status) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertResponseOk
protected static void assertResponseOk(jakarta.ws.rs.core.Response response) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertResponseString
protected static void assertResponseString(String response, String expectedValue) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
createEntity
protected static <T> jakarta.ws.rs.client.Entity<T> createEntity(T entity) -
createGeneric
-
assertProcessingException
- Throws:
JAXRSCommonClient.Fault
-
assertWebApplicationException
protected static void assertWebApplicationException(Runnable runnable) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertException
protected static <T extends Exception> void assertException(Runnable runnable, Class<T> exception) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-