Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.api.client.invocation.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
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 void
assertContains
(jakarta.ws.rs.core.Response response, String what) protected void
assertContains
(String responseEntity, String what) protected void
protected void
protected void
protected void
assertStatus
(jakarta.ws.rs.core.Response response, jakarta.ws.rs.core.Response.Status status) protected void
assertStatus
(Future<jakarta.ws.rs.core.Response> future, jakarta.ws.rs.core.Response.Status status) protected void
protected jakarta.ws.rs.client.ClientRequestFilter
protected <T> jakarta.ws.rs.client.InvocationCallback<T>
createCallback
(Class<T> clazz) protected <T> jakarta.ws.rs.client.Entity<T>
createEntity
(T t) Create entity instanceprotected jakarta.ws.rs.client.Invocation.Builder
protected jakarta.ws.rs.client.Invocation.Builder
createInvocationBuilder
(jakarta.ws.rs.client.ClientRequestFilter filter) protected jakarta.ws.rs.client.ClientRequestFilter
Simulates server sideprotected String
getEntity
(jakarta.ws.rs.core.Response r) 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
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
-
Constructor Details
-
JAXRSClientIT
public JAXRSClientIT()
-
-
Method Details
-
invokePlainTest
- Throws:
JAXRSCommonClient.Fault
-
invokeThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
invokeClassTest
- Throws:
JAXRSCommonClient.Fault
-
invokeClassThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
invokeStringThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
invokeResponseThrowsNoWebApplicationExceptionTest
@Test public void invokeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
invokeGenericTypeTest
- Throws:
JAXRSCommonClient.Fault
-
invokeGenericTypeThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
invokeGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void invokeGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
invokeAnnonymousGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void invokeAnnonymousGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
invokeExtendedGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void invokeExtendedGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
submitPlainTest
- Throws:
JAXRSCommonClient.Fault
-
submitPlainThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
submitClassTest
- Throws:
JAXRSCommonClient.Fault
-
submitStringThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
submitStringThrowsWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
submitResponseThrowsNoWebApplicationExceptionTest
@Test public void submitResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
submitGenericTypeTest
- Throws:
JAXRSCommonClient.Fault
-
submitGenericTypeThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
submitGenericTypeStringThrowsWebApplicationExceptionTest
@Test public void submitGenericTypeStringThrowsWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
submitAnnonymousGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void submitAnnonymousGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
submitExtendedGenericTypeResponseThrowsNoWebApplicationExceptionTest
@Test public void submitExtendedGenericTypeResponseThrowsNoWebApplicationExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
submitInvocationCallbackTest
- Throws:
JAXRSCommonClient.Fault
-
submitInvocationCallbackThrowsProcessingExceptionTest
@Test public void submitInvocationCallbackThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
submitInvocationCallbackStringThrowsWebAppExceptionTest
@Test public void submitInvocationCallbackStringThrowsWebAppExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
submitInvocationCallbackResponseThrowsNoWebAppExceptionTest
@Test public void submitInvocationCallbackResponseThrowsNoWebAppExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
createRequestFilter
protected jakarta.ws.rs.client.ClientRequestFilter createRequestFilter()Simulates server side- Returns:
- Response containing request method and entity
-
createInvocationBuilder
protected jakarta.ws.rs.client.Invocation.Builder createInvocationBuilder(jakarta.ws.rs.client.ClientRequestFilter filter) -
createInvocationBuilder
protected jakarta.ws.rs.client.Invocation.Builder createInvocationBuilder() -
createBadResponseFilter
protected jakarta.ws.rs.client.ClientRequestFilter createBadResponseFilter() -
createCallback
-
getEntity
-
createEntity
protected <T> jakarta.ws.rs.client.Entity<T> createEntity(T t) Create entity instance -
assertStatus
protected void assertStatus(jakarta.ws.rs.core.Response response, jakarta.ws.rs.core.Response.Status status) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertContains
protected void assertContains(jakarta.ws.rs.core.Response response, String what) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertContains
- Throws:
JAXRSCommonClient.Fault
-
assertStatus
protected void assertStatus(Future<jakarta.ws.rs.core.Response> future, jakarta.ws.rs.core.Response.Status status) 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
-