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.CollectionNameNested 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, useDefaultValueFields 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 voidbuildRequestAndInvoke(String request) protected StringbuildRequestForException(String param, int entity) protected voidcheckCookie(String cookie) protected voidcreateAndCheckCookie(String param, String uri) protected voidfieldOrParamEncodedTest(String prefix) protected voidfieldOrParamEntityName(Class<?> entityClazz, String nonDefaultValue, String... prefix) Behind a test, there would be the following logic.protected voidprotected voidprotected StringgetDefaultValueOfParam(String param) protected voidinvoke()Invokes a test based on the properties stored in TEST_PROPS.protected voidparamEntity(String request) protected static StringstripQuotesSpacesAndLowerCase(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, segmentFromParamMethods 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:JaxrsParamClientBehind 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:
fieldOrParamEntityNamein classJaxrsParamClient- Throws:
JAXRSCommonClient.Fault- : When test fail
-
fieldOrParamThrowingWebApplicationExceptionTest
protected void fieldOrParamThrowingWebApplicationExceptionTest(String prefix) throws JAXRSCommonClient.Fault - Overrides:
fieldOrParamThrowingWebApplicationExceptionTestin classJaxrsParamClient- Throws:
JAXRSCommonClient.Fault
-
fieldOrParamThrowingIllegalArgumentExceptionTest
protected void fieldOrParamThrowingIllegalArgumentExceptionTest(String prefix) throws JAXRSCommonClient.Fault - Overrides:
fieldOrParamThrowingIllegalArgumentExceptionTestin classJaxrsParamClient- Throws:
JAXRSCommonClient.Fault
-
fieldOrParamEncodedTest
- Overrides:
fieldOrParamEncodedTestin classJaxrsParamClient- Throws:
JAXRSCommonClient.Fault
-
paramEntity
- Overrides:
paramEntityin classJaxrsParamClient- Throws:
JAXRSCommonClient.Fault
-
getDefaultValueOfParam
- Specified by:
getDefaultValueOfParamin classJaxrsParamClient
-
invoke
Description copied from class:JAXRSCommonClientInvokes a test based on the properties stored in TEST_PROPS. Once the test has completed, the properties in TEST_PROPS will be cleared.
- Overrides:
invokein classJAXRSCommonClient- Throws:
JAXRSCommonClient.Fault- If an error occurs during the test run
-
buildRequestAndInvoke
- Overrides:
buildRequestAndInvokein 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
-