Package ee.jakarta.tck.ws.rs.ee.rs
Class JaxrsParamClient
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.ee.rs.JaxrsParamClient
- Direct Known Subclasses:
BeanParamCommonClient,JAXRSClientIT,JAXRSClientIT,JAXRSClientIT,JAXRSClientIT,JAXRSClientIT,JAXRSClientIT
- Since:
- 2.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
JAXRSCommonClient.Fault, JAXRSCommonClient.Property, JAXRSCommonClient.Request -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhen URI is to be encoded, equals ('=') is encoded as '%3d' This variable is to set which equals, the original or encoded is to be searched in responseprotected booleanCurrently, not for every param annotation @DefaultValue works.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 abstract StringbuildRequest(String param) protected voidbuildRequestAndInvoke(String request) protected voidvoidvoidvoidvoidprotected voidfieldOrParamEncodedTest(String prefix) protected voidfieldOrParamEntityName(Class<?> entityClazz, String nonDefaultValue, String... prefix) Behind a test, there would be the following logic.protected voidprotected voidvoidprotected voidprotected abstract StringgetDefaultValueOfParam(String param) protected voidprotected voidparamEntity(String request) protected voidparamEntityDefault(String request) protected voidparamEntityThrowingAfterRequestSet(String request) voidvoidvoidvoidvoidprotected voidprotected static StringsegmentFromParam(String param) 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
-
useDefaultValue
protected boolean useDefaultValueCurrently, not for every param annotation @DefaultValue works. Where it works not, set useDefaultValue to false when inherit -
searchEqualsEncoded
protected boolean searchEqualsEncodedWhen URI is to be encoded, equals ('=') is encoded as '%3d' This variable is to set which equals, the original or encoded is to be searched in response
-
-
Constructor Details
-
JaxrsParamClient
public JaxrsParamClient()
-
-
Method Details
-
fieldOrParamEntityName
protected void fieldOrParamEntityName(Class<?> entityClazz, String nonDefaultValue, String... prefix) throws JAXRSCommonClient.Fault Behind a test, there would be the following logic. a) There is a field test. This is to test instance attributes, i.e. fields. b) There is a param test. This is to test argument attributes, i.e. method arguments. Thus, the argument shall be named only by an Entity name (i.e. the name of the entity in jaxrs.ee.rs package), the CollectionName prefix to test arguments, or the Field prefix to check variant a, or Field and CollectionName to check variant a with collections.- Throws:
JAXRSCommonClient.Fault- : When test fail
-
paramEntityWithConstructorTest
- Throws:
JAXRSCommonClient.Fault
-
paramEntityWithValueOfTest
- Throws:
JAXRSCommonClient.Fault
-
paramEntityWithFromStringTest
- Throws:
JAXRSCommonClient.Fault
-
paramCollectionEntityWithFromStringTest
protected void paramCollectionEntityWithFromStringTest(JaxrsParamClient.CollectionName collection) throws JAXRSCommonClient.Fault - Parameters:
collection- : Collection to use from {List,Set,SortedSet}- Throws:
JAXRSCommonClient.Fault
-
fieldEntityWithConstructorTest
- Throws:
JAXRSCommonClient.Fault
-
fieldEntityWithValueOfTest
- Throws:
JAXRSCommonClient.Fault
-
fieldEntityWithFromStringTest
- Throws:
JAXRSCommonClient.Fault
-
fieldCollectionEntityWithFromStringTest
protected void fieldCollectionEntityWithFromStringTest(JaxrsParamClient.CollectionName collection) throws JAXRSCommonClient.Fault - Parameters:
collection- : Collection to use from {List,Set,SortedSet}- Throws:
JAXRSCommonClient.Fault
-
fieldOrParamEncodedTest
- Throws:
JAXRSCommonClient.Fault
-
paramEntityWithEncodedTest
- Throws:
JAXRSCommonClient.Fault
-
fieldEntityWithEncodedTest
- Throws:
JAXRSCommonClient.Fault
-
fieldOrParamThrowingWebApplicationExceptionTest
protected void fieldOrParamThrowingWebApplicationExceptionTest(String prefix) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
paramThrowingWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
fieldThrowingWebApplicationExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
paramEntityThrowingAfterRequestSet
- Throws:
JAXRSCommonClient.Fault
-
fieldOrParamThrowingIllegalArgumentExceptionTest
protected void fieldOrParamThrowingIllegalArgumentExceptionTest(String prefix) throws JAXRSCommonClient.Fault - Throws:
JAXRSCommonClient.Fault
-
paramThrowingIllegalArgumentExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
fieldThrowingIllegalArgumentExceptionTest
- Throws:
JAXRSCommonClient.Fault
-
buildRequestAndInvoke
- Throws:
JAXRSCommonClient.Fault
-
paramEntityDefault
- Throws:
JAXRSCommonClient.Fault
-
paramEntity
- Throws:
JAXRSCommonClient.Fault
-
buildRequest
-
getDefaultValueOfParam
-
segmentFromParam
-