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.core.response.JAXRSClientIT
@ExtendWith(org.jboss.arquillian.junit5.ArquillianExtension.class)
public class JAXRSClientIT
extends JaxrsCommonClient
Some tests are the same as the tests in api.rs.core package except how the
Response is created. This is because implementation of inbound and outbound
Response differ.
-
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.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 TypeMethodDescriptionvoid
void
void
protected void
catchCorruptedStreamException
(Runnable runnable) protected void
catchCorruptedStreamExceptionOnBufferEntity
(jakarta.ws.rs.core.Response response) void
void
static org.jboss.shrinkwrap.api.spec.WebArchive
protected <T> jakarta.ws.rs.core.GenericType<T>
void
void
void
protected long
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
protected jakarta.ws.rs.core.Response
protected jakarta.ws.rs.core.Response
invokePost
(String method, Object entity) protected String
langToString
(Object object) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
protected String
void
protected AtomicInteger
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
-
Constructor Details
-
JAXRSClientIT
public JAXRSClientIT()
-
-
Method Details
-
createDeployment
@Deployment(testable=false) public static org.jboss.shrinkwrap.api.spec.WebArchive createDeployment() throws IOException- Throws:
IOException
-
statusTest
- Throws:
JAXRSCommonClient.Fault
-
bufferEntityBuffersDataTest
- Throws:
JAXRSCommonClient.Fault
-
bufferEntityThrowsExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
bufferEntityThrowsIllegalStateExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
closeTest
- Throws:
JAXRSCommonClient.Fault
-
closeThrowsExceptionWhenErrorTest
- Throws:
JAXRSCommonClient.Fault
-
getAllowedMethodsTest
- Throws:
JAXRSCommonClient.Fault
-
getCookiesTest
- Throws:
JAXRSCommonClient.Fault
-
getCookiesIsImmutableTest
- Throws:
JAXRSCommonClient.Fault
-
getDateTest
- Throws:
JAXRSCommonClient.Fault
-
getEntityThrowsIllegalStateExceptionTestWhenClosed
@Test public void getEntityThrowsIllegalStateExceptionTestWhenClosed() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getEntityThrowsIllegalStateExceptionWhenConsumedTest
@Test public void getEntityThrowsIllegalStateExceptionWhenConsumedTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
getEntityTagTest
- Throws:
JAXRSCommonClient.Fault
-
getEntityTagNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getHeadersTest
- Throws:
JAXRSCommonClient.Fault
-
getHeadersUsingHeaderDelegateTest
- Throws:
JAXRSCommonClient.Fault
-
getHeadersIsMutableTest
- Throws:
JAXRSCommonClient.Fault
-
getHeaderStringTest
- Throws:
JAXRSCommonClient.Fault
-
getHeaderStringUsingHeaderDelegateTest
- Throws:
JAXRSCommonClient.Fault
-
getHeaderStringUsingToStringTest
- Throws:
JAXRSCommonClient.Fault
-
getLanguageTest
- Throws:
JAXRSCommonClient.Fault
-
getLanguageNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getLastModifiedTest
- Throws:
JAXRSCommonClient.Fault
-
getLastModifiedNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getLengthTest
- Throws:
JAXRSCommonClient.Fault
-
getLengthNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getLinkTest
- Throws:
JAXRSCommonClient.Fault
-
getLinkNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getLinkBuilderForTheRelationTest
- Throws:
JAXRSCommonClient.Fault
-
getLinkBuilderForTheNotPresentRelationTest
- Throws:
JAXRSCommonClient.Fault
-
getLinksTest
- Throws:
JAXRSCommonClient.Fault
-
getLinksIsNotNullTest
- Throws:
JAXRSCommonClient.Fault
-
getLocationTest
- Throws:
JAXRSCommonClient.Fault
-
getLocationNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getMediaTypeTest
- Throws:
JAXRSCommonClient.Fault
-
getStatusInfoTest
- Throws:
JAXRSCommonClient.Fault
-
getStringHeadersUsingToStringTest
- Throws:
JAXRSCommonClient.Fault
-
getStringHeadersUsingHeaderDelegateTest
- Throws:
JAXRSCommonClient.Fault
-
hasEntityWhenEntityTest
- Throws:
JAXRSCommonClient.Fault
-
hasEntityWhenNoEntityTest
- Throws:
JAXRSCommonClient.Fault
-
hasEntityThrowsIllegalStateExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
hasLinkWhenLinkTest
- Throws:
JAXRSCommonClient.Fault
-
hasLinkWhenNoLinkTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassIsNullWhenNoEntityTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassCloseIsCalledTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassCloseIsNotCalledOnInputStreamTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassThrowsProcessingExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassThrowsIllegalStateExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericIsNullWhenNoEntityTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericCloseIsCalledTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeCloseIsNotCalledOnInputStreamTest
@Test public void readEntityGenericTypeCloseIsNotCalledOnInputStreamTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeThrowsProcessingExceptionTest
@Test public void readEntityGenericTypeThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeThrowsIllegalStateExceptionTest
@Test public void readEntityGenericTypeThrowsIllegalStateExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityClassAnnotationTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassAnnotationIsNullWhenNoEntityTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassAnnotationCloseIsCalledTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityClassAnnotationCloseIsNotCalledOnInputStreamTest
@Test public void readEntityClassAnnotationCloseIsNotCalledOnInputStreamTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityClassAnnotationThrowsProcessingExceptionTest
@Test public void readEntityClassAnnotationThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityClassAnnotationThrowsIllegalStateExceptionTest
@Test public void readEntityClassAnnotationThrowsIllegalStateExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeAnnotationTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeAnnotationIsNullWhenNoEntityTest
@Test public void readEntityGenericTypeAnnotationIsNullWhenNoEntityTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeAnnotationCloseIsCalledTest
- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeAnnotationCloseIsNotCalledOnInputStreamTest
@Test public void readEntityGenericTypeAnnotationCloseIsNotCalledOnInputStreamTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeAnnotationThrowsProcessingExceptionTest
@Test public void readEntityGenericTypeAnnotationThrowsProcessingExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
readEntityGenericTypeAnnotationThrowsIllegalStateExceptionTest
@Test public void readEntityGenericTypeAnnotationThrowsIllegalStateExceptionTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
responseCreatedRelativeURITest
- Throws:
JAXRSCommonClient.Fault
-
generic
-
invokeGet
- Throws:
JAXRSCommonClient.Fault
-
invokePost
protected jakarta.ws.rs.core.Response invokePost(String method, Object entity) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
readLine
- Throws:
JAXRSCommonClient.Fault
-
setCorruptedStream
-
getCurrentTimeMillis
protected long getCurrentTimeMillis() -
langToString
-
catchCorruptedStreamException
- Throws:
JAXRSCommonClient.Fault
-
catchCorruptedStreamExceptionOnBufferEntity
protected void catchCorruptedStreamExceptionOnBufferEntity(jakarta.ws.rs.core.Response response) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-