Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.api.rs.core.responseclient.JAXRSClientIT
- Direct Known Subclasses:
BuilderClientIT
-
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 final jakarta.ws.rs.core.Response.Status[]
protected final String[]
protected final int[]
protected final jakarta.ws.rs.core.Response.Status.Family[]
protected final jakarta.ws.rs.core.Response.Status.Family[]
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 static void
assertResultTrue
(VerificationResult result) void
void
void
void
void
void
void
protected static jakarta.ws.rs.core.Link
createLink
(String path, String rel) protected static URI
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
protected static List<jakarta.ws.rs.core.Variant>
getVariantList
(List<String> encoding, jakarta.ws.rs.core.MediaType... mt) void
void
void
void
void
void
protected static String
langToString
(Object object) void
void
void
void
void
void
void
void
void
void
okTest1()
void
okTest2()
void
okTest3()
void
okTest4()
void
okTest5()
void
void
void
void
void
void
void
void
void
void
void
void
tagTest1()
void
tagTest2()
void
void
void
typeTest()
void
void
void
protected VerificationResult
verifyCacheControl
(jakarta.ws.rs.core.Response response, List<String> ccl) protected VerificationResult
verifyContent
(jakarta.ws.rs.core.Response response, String content) protected VerificationResult
verifyContentType
(jakarta.ws.rs.core.Response response, List<String> type) protected VerificationResult
verifyCookies
(jakarta.ws.rs.core.Response response, List<String> cookies) protected VerificationResult
verifyEncoding
(jakarta.ws.rs.core.Response response, List<String> encoding) protected VerificationResult
verifyHeaders
(jakarta.ws.rs.core.Response response, HashMap<String, String> expected) protected VerificationResult
verifyLanguage
(jakarta.ws.rs.core.Response response, List<String> languages) protected VerificationResult
verifyStatus
(jakarta.ws.rs.core.Response response, int status) protected VerificationResult
verifyVary
(jakarta.ws.rs.core.Response response, List<String> var) 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
-
resp_status
protected final jakarta.ws.rs.core.Response.Status[] resp_status -
status_codes
protected final int[] status_codes -
status_family
protected final jakarta.ws.rs.core.Response.Status.Family[] status_family -
status_family_list
protected final jakarta.ws.rs.core.Response.Status.Family[] status_family_list -
status
-
-
Constructor Details
-
JAXRSClientIT
public JAXRSClientIT()
-
-
Method Details
-
okTest1
- Throws:
JAXRSCommonClient.Fault
-
okTest2
- Throws:
JAXRSCommonClient.Fault
-
okTest3
- Throws:
JAXRSCommonClient.Fault
-
okTest4
- Throws:
JAXRSCommonClient.Fault
-
okTest5
- Throws:
JAXRSCommonClient.Fault
-
noContentTest
- Throws:
JAXRSCommonClient.Fault
-
notAcceptableTest
- Throws:
JAXRSCommonClient.Fault
-
notModifiedTest1
- Throws:
JAXRSCommonClient.Fault
-
notModifiedTest2
- Throws:
JAXRSCommonClient.Fault
-
notModifiedTest3
- Throws:
JAXRSCommonClient.Fault
-
statusTest1
- Throws:
JAXRSCommonClient.Fault
-
statusTest2
- Throws:
JAXRSCommonClient.Fault
-
statusTest3
- Throws:
JAXRSCommonClient.Fault
-
statusTest4
- Throws:
JAXRSCommonClient.Fault
-
createdTest
- Throws:
JAXRSCommonClient.Fault
-
serverErrorTest
- Throws:
JAXRSCommonClient.Fault
-
seeOtherTest
- Throws:
JAXRSCommonClient.Fault
-
temporaryRedirectTest
- Throws:
JAXRSCommonClient.Fault
-
fromResponseTest
- Throws:
JAXRSCommonClient.Fault
-
entityTest
- Throws:
JAXRSCommonClient.Fault
-
languageTest
- Throws:
JAXRSCommonClient.Fault
-
languageTest1
- Throws:
JAXRSCommonClient.Fault
-
typeTest
- Throws:
JAXRSCommonClient.Fault
-
typeTest1
- Throws:
JAXRSCommonClient.Fault
-
tagTest1
- Throws:
JAXRSCommonClient.Fault
-
tagTest2
- Throws:
JAXRSCommonClient.Fault
-
variantTest
- Throws:
JAXRSCommonClient.Fault
-
variantsTest
- Throws:
JAXRSCommonClient.Fault
-
locationTest
- Throws:
JAXRSCommonClient.Fault
-
contentLocationTest
- Throws:
JAXRSCommonClient.Fault
-
cacheControlTest
- Throws:
JAXRSCommonClient.Fault
-
cookieTest
- Throws:
JAXRSCommonClient.Fault
-
lastModifiedTest
- Throws:
JAXRSCommonClient.Fault
-
headerTest
- Throws:
JAXRSCommonClient.Fault
-
cloneTest
- Throws:
JAXRSCommonClient.Fault
-
statusTest5
- Throws:
JAXRSCommonClient.Fault
-
getFamilyTest
- Throws:
JAXRSCommonClient.Fault
-
statusTest7
- Throws:
JAXRSCommonClient.Fault
-
toStringTest
- Throws:
JAXRSCommonClient.Fault
-
getReasonPhraseTest
- Throws:
JAXRSCommonClient.Fault
-
statusValueOfTest
- Throws:
JAXRSCommonClient.Fault
-
statusFamilyValueOfTest
- Throws:
JAXRSCommonClient.Fault
-
statusFamilyValuesTest
- Throws:
JAXRSCommonClient.Fault
-
acceptedNoArgTest
- Throws:
JAXRSCommonClient.Fault
-
acceptedStringTest
- Throws:
JAXRSCommonClient.Fault
-
acceptedGenericEntityTest
- Throws:
JAXRSCommonClient.Fault
-
bufferEntityIgnoreNoBackingStreamTest
- Throws:
JAXRSCommonClient.Fault
-
bufferEntityThrowsIllegalStateExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getAllowedMethodsTest
- Throws:
JAXRSCommonClient.Fault
-
getCookiesTest
- Throws:
JAXRSCommonClient.Fault
-
getCookiesIsImmutableTest
- Throws:
JAXRSCommonClient.Fault
-
getDateTest
- Throws:
JAXRSCommonClient.Fault
-
getDateNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getEntityThrowsIllegalStateExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
getEntityTagTest
- Throws:
JAXRSCommonClient.Fault
-
getEntityTagNotPresentTest
- Throws:
JAXRSCommonClient.Fault
-
getHeadersTest
- 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
-
getMediaTypeNoMediaTypeTest
- 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
-
verifyContent
-
verifyStatus
-
verifyHeaders
protected VerificationResult verifyHeaders(jakarta.ws.rs.core.Response response, HashMap<String, String> expected) -
verifyEncoding
protected VerificationResult verifyEncoding(jakarta.ws.rs.core.Response response, List<String> encoding) -
verifyLanguage
protected VerificationResult verifyLanguage(jakarta.ws.rs.core.Response response, List<String> languages) -
verifyContentType
protected VerificationResult verifyContentType(jakarta.ws.rs.core.Response response, List<String> type) -
verifyVary
-
verifyCacheControl
protected VerificationResult verifyCacheControl(jakarta.ws.rs.core.Response response, List<String> ccl) -
verifyCookies
protected VerificationResult verifyCookies(jakarta.ws.rs.core.Response response, List<String> cookies) -
assertResultTrue
-
getLangList
-
getVariantList
-
langToString
-
createLink
protected static jakarta.ws.rs.core.Link createLink(String path, String rel) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
createUri
- Throws:
JAXRSCommonClient.Fault
-