Class BeanParamCommonClient
java.lang.Object
ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
ee.jakarta.tck.ws.rs.ee.rs.JaxrsParamClient
ee.jakarta.tck.ws.rs.ee.rs.beanparam.BeanParamCommonClient
- Direct Known Subclasses:
JAXRSClientIT
,JAXRSClientIT
,JAXRSClientIT
,JAXRSClientIT
,JAXRSClientIT
,JAXRSClientIT
-
Nested Class Summary
Nested classes/interfaces inherited from class ee.jakarta.tck.ws.rs.ee.rs.JaxrsParamClient
JaxrsParamClient.CollectionName
Nested classes/interfaces inherited from class ee.jakarta.tck.ws.rs.common.JAXRSCommonClient
JAXRSCommonClient.Fault, JAXRSCommonClient.Property, JAXRSCommonClient.Request
-
Field Summary
FieldsFields inherited from class ee.jakarta.tck.ws.rs.ee.rs.JaxrsParamClient
searchEqualsEncoded, useDefaultValue
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 void
buildRequestAndInvoke
(String request) protected String
buildRequestForException
(String param, int entity) protected void
checkCookie
(String cookie) protected void
createAndCheckCookie
(String param, String uri) protected void
fieldOrParamEncodedTest
(String prefix) protected void
fieldOrParamEntityName
(Class<?> entityClazz, String nonDefaultValue, String... prefix) Behind a test, there would be the following logic.protected void
protected void
protected String
getDefaultValueOfParam
(String param) protected void
invoke()
Invokes a test based on the properties stored in TEST_PROPS.protected void
paramEntity
(String request) protected static String
stripQuotesSpacesAndLowerCase
(String cookie) Methods inherited from class ee.jakarta.tck.ws.rs.ee.rs.JaxrsParamClient
buildRequest, fieldCollectionEntityWithFromStringTest, fieldEntityWithConstructorTest, fieldEntityWithEncodedTest, fieldEntityWithFromStringTest, fieldEntityWithValueOfTest, fieldThrowingIllegalArgumentExceptionTest, fieldThrowingWebApplicationExceptionTest, paramCollectionEntityWithFromStringTest, paramEntityDefault, paramEntityThrowingAfterRequestSet, paramEntityWithConstructorTest, paramEntityWithEncodedTest, paramEntityWithFromStringTest, paramEntityWithValueOfTest, paramThrowingIllegalArgumentExceptionTest, paramThrowingWebApplicationExceptionTest, segmentFromParam
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, isNullOrEmpty, logMsg, logTrace, objectsToString, objectsToString, setContextRoot, setProperty, setProperty, setProperty, setServletName, setTestDir, setTestProperties, setup, setWebTestCaseProperties, setWebTestCaseRequest, toString
-
Field Details
-
fieldBeanParam
-
exceptionInEntity
protected int exceptionInEntity
-
-
Constructor Details
-
BeanParamCommonClient
public BeanParamCommonClient()
-
-
Method Details
-
fieldOrParamEntityName
protected void fieldOrParamEntityName(Class<?> entityClazz, String nonDefaultValue, String... prefix) throws JAXRSCommonClient.Fault Description copied from class:JaxrsParamClient
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.- Overrides:
fieldOrParamEntityName
in classJaxrsParamClient
- Throws:
JAXRSCommonClient.Fault
- : When test fail
-
fieldOrParamThrowingWebApplicationExceptionTest
protected void fieldOrParamThrowingWebApplicationExceptionTest(String prefix) throws JAXRSCommonClient.Fault - Overrides:
fieldOrParamThrowingWebApplicationExceptionTest
in classJaxrsParamClient
- Throws:
JAXRSCommonClient.Fault
-
fieldOrParamThrowingIllegalArgumentExceptionTest
protected void fieldOrParamThrowingIllegalArgumentExceptionTest(String prefix) throws JAXRSCommonClient.Fault - Overrides:
fieldOrParamThrowingIllegalArgumentExceptionTest
in classJaxrsParamClient
- Throws:
JAXRSCommonClient.Fault
-
fieldOrParamEncodedTest
- Overrides:
fieldOrParamEncodedTest
in classJaxrsParamClient
- Throws:
JAXRSCommonClient.Fault
-
paramEntity
- Overrides:
paramEntity
in classJaxrsParamClient
- Throws:
JAXRSCommonClient.Fault
-
getDefaultValueOfParam
- Specified by:
getDefaultValueOfParam
in classJaxrsParamClient
-
invoke
Description copied from class:JAXRSCommonClient
Invokes a test based on the properties stored in TEST_PROPS. Once the test has completed, the properties in TEST_PROPS will be cleared.
- Overrides:
invoke
in classJAXRSCommonClient
- Throws:
JAXRSCommonClient.Fault
- If an error occurs during the test run
-
buildRequestAndInvoke
- Overrides:
buildRequestAndInvoke
in classJaxrsParamClient
- Throws:
JAXRSCommonClient.Fault
-
buildRequestForException
- Parameters:
entity
- specifies whether the exception is to be tested in first entity, i.e. in the master BeanParamEntity or the second entity Inner*BeanParamEntity- Throws:
JAXRSCommonClient.Fault
-
createAndCheckCookie
- Throws:
JAXRSCommonClient.Fault
-
checkCookie
- Throws:
JAXRSCommonClient.Fault
-
stripQuotesSpacesAndLowerCase
-