Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.api.client.client.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 TypeFieldDescriptionprotected jakarta.ws.rs.client.Clientprotected jakarta.ws.rs.client.WebTargetFields 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 voidprotected static <T extends Exception>
voidcheckInvocationException(jakarta.ws.rs.core.Link link, Class<T> exception, String messageOnException, String messageNoException) Check exception when calling Client#invocation() and logvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected static booleanfitsMethodArguments(Method method, Object... args) protected static MethodgetMethodByName(Class<?> clazz, String name, Object... args) protected Stringvoidprotected voidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods 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
-
target
protected transient jakarta.ws.rs.client.WebTarget target -
client
protected transient jakarta.ws.rs.client.Client client
-
-
Constructor Details
-
JAXRSClientIT
public JAXRSClientIT()
-
-
Method Details
-
closeOnClientConfigTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientInvocationWithLinkTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientTargetWithLinkTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientTargetWithStringTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientTargetWithUriTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterClassTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterObjectTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterClassWithContractsTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterClassWithPriorityTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterClassMapTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterObjectWithContractsTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterObjectWithPriorityTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientRegisterObjectWithMapTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientPropertyTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnClientTargetWithUriBuilderTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetConfigTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetGetUriTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetGetUriBuilderTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetMatrixParamTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetPathTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetQueryParamTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterClassTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterObjectTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterClassWithContractsTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterClassWithPriorityTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterClassMapTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterObjectWithContractsTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterObjectWithPriorityTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRegisterObjectWithMapTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRequestTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRequestWithMediaTypeTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetRequestWithMediaTypeNameTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetResolveTemplateStringObjectTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetResolveTemplateStringObjectBooleanTest
@Test public void closeOnWebTargetResolveTemplateStringObjectBooleanTest() throws JAXRSCommonClient.Fault- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetResolveTemplateFromEncodedTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetResolveTemplatesMapTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetResolveTemplatesMapBooleanTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetPropertyTest
- Throws:
JAXRSCommonClient.Fault
-
closeOnWebTargetResolveTemplatesFromEncodedTest
- Throws:
JAXRSCommonClient.Fault
-
invocationFromLinkExceptionNoLinkTest
- Throws:
JAXRSCommonClient.Fault
-
targetStringTest
- Throws:
JAXRSCommonClient.Fault
-
targetWithStringIllegalArgumentExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
targetWithStringNullPointerExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
targetUriTest
- Throws:
JAXRSCommonClient.Fault
-
targetWithUriNullPointerExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
targetUriBuilderTest
- Throws:
JAXRSCommonClient.Fault
-
targetWithUriBuilderNullPointerExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
targetLinkTest
- Throws:
JAXRSCommonClient.Fault
-
targetWithLinkNullPointerExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
checkInvocationException
protected static <T extends Exception> void checkInvocationException(jakarta.ws.rs.core.Link link, Class<T> exception, String messageOnException, String messageNoException) throws JAXRSCommonClient.Fault Check exception when calling Client#invocation() and log- Throws:
JAXRSCommonClient.Fault
-
setClientAndWebTarget
protected void setClientAndWebTarget() -
assertException
protected static void assertException(Class<? extends Exception> exception, Object object, String method, Object... args) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
getMethodByName
-
fitsMethodArguments
-
getUrl
-