Class JAXRSClientIT
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.api.client.entity.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 <T> void
assertAnnotation
(jakarta.ws.rs.client.Entity<T> entity, Annotation original) protected <T> void
assertAnnotations
(jakarta.ws.rs.client.Entity<T> entity, Annotation[] original) protected <T> void
assertEncoding
(jakarta.ws.rs.client.Entity<T> entity, String original) protected <T> void
assertEntity
(jakarta.ws.rs.client.Entity<T> entity, String original) protected <T> void
assertLanguages
(jakarta.ws.rs.client.Entity<T> entity, Locale original) protected <T> void
assertMediaType
(jakarta.ws.rs.client.Entity<T> entity, String original) protected <T> void
assertVariant
(jakarta.ws.rs.client.Entity<T> entity, jakarta.ws.rs.core.Variant original) void
void
void
void
void
void
void
void
void
void
void
void
protected Object[]
Get different objects and their class for entities to be createdprotected <T> T[]
getMediaTypes
(Class<T> clazz) MediaType should either be an enum or have the values method It's neither so this method uses reflection to acquire public static fields of given class, either MediaType or String.void
htmlTest()
void
jsonTest()
void
textTest()
void
void
xmlTest()
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
-
entityMediaTypeTest
- Throws:
JAXRSCommonClient.Fault
-
entityMediaTypeGetEntityTest
- Throws:
JAXRSCommonClient.Fault
-
entityMediaTypeAnnotationsTest
- Throws:
JAXRSCommonClient.Fault
-
entityMediaTypeAnnotationsDifferentEntitiesTest
- Throws:
JAXRSCommonClient.Fault
-
entityStringTest
- Throws:
JAXRSCommonClient.Fault
-
entityStringGetEntityTest
- Throws:
JAXRSCommonClient.Fault
-
entityStringThrowsExceptionWhenNullTest
- Throws:
JAXRSCommonClient.Fault
-
entityStringThrowsExceptionWhenUnparsableTest
- Throws:
JAXRSCommonClient.Fault
-
entityVariantTest
- Throws:
JAXRSCommonClient.Fault
-
entityVariantAnnotationsTest
- Throws:
JAXRSCommonClient.Fault
-
formFormTest
- Throws:
JAXRSCommonClient.Fault
-
formMultivaluedMapTest
- Throws:
JAXRSCommonClient.Fault
-
htmlTest
- Throws:
JAXRSCommonClient.Fault
-
jsonTest
- Throws:
JAXRSCommonClient.Fault
-
textTest
- Throws:
JAXRSCommonClient.Fault
-
xhtmlTest
- Throws:
JAXRSCommonClient.Fault
-
xmlTest
- Throws:
JAXRSCommonClient.Fault
-
assertEntity
protected <T> void assertEntity(jakarta.ws.rs.client.Entity<T> entity, String original) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertMediaType
protected <T> void assertMediaType(jakarta.ws.rs.client.Entity<T> entity, String original) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertAnnotation
protected <T> void assertAnnotation(jakarta.ws.rs.client.Entity<T> entity, Annotation original) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertAnnotations
protected <T> void assertAnnotations(jakarta.ws.rs.client.Entity<T> entity, Annotation[] original) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertLanguages
protected <T> void assertLanguages(jakarta.ws.rs.client.Entity<T> entity, Locale original) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertEncoding
protected <T> void assertEncoding(jakarta.ws.rs.client.Entity<T> entity, String original) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
assertVariant
protected <T> void assertVariant(jakarta.ws.rs.client.Entity<T> entity, jakarta.ws.rs.core.Variant original) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
getMediaTypes
MediaType should either be an enum or have the values method It's neither so this method uses reflection to acquire public static fields of given class, either MediaType or String.- Parameters:
clazz
- Class of the public static Field- Returns:
- array of the Fields of a given class
- Throws:
JAXRSCommonClient.Fault
-
getEntities
Get different objects and their class for entities to be created
-