Class PortletWebContextTestCase
java.lang.Object
org.apache.commons.chain.ContextTestCase<PortletWebContext>
org.apache.commons.chain.web.ContextBaseTestWeb<PortletWebContext>
org.apache.commons.chain.web.portlet.PortletWebContextTestCase
Extension of
ContextBaseTestCase
to validate the
extra functionality of this implementation.-
Field Summary
Modifier and TypeFieldDescriptionprotected javax.portlet.PortletContext
Portlet API Objects - Contextprotected javax.portlet.PortletRequest
Portlet API Objects - Requestprotected javax.portlet.PortletResponse
Portlet API Objects - Responseprotected javax.portlet.PortletSession
Portlet API Objects - SessionFields inherited from class org.apache.commons.chain.ContextTestCase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkEntrySet
(Map<String, ?> map, boolean modifiable) Test to ensure properentrySet()
and are modifiable optionallyprotected void
checkMapSize
(Map<String, ?> map, int size) protected PortletWebContext
Create a new instance of the appropriate Context type for this test casevoid
init()
Set up instance variables required by this test case.void
tearDown()
Tear down instance variables required by this test case.void
TestgetApplicationScope()
void
TestgetCookies()
void
Testequals()
andhashCode()
Copied from ContextBaseTestCase with customized creation of "other"void
TestgetHeader()
void
TestgetHeaderValues()
void
TestgetInitParam()
void
TestgetParam()
void
TestgetParamValues()
void
Test state of newly created instancevoid
Testrelease()
void
TestgetRequestScope()
void
TestgetSessionScope()
void
TestgetSessionScope()
without SessionMethods inherited from class org.apache.commons.chain.web.ContextBaseTestWeb
testSerialization
Methods inherited from class org.apache.commons.chain.ContextTestCase
checkAttributeCount, expectedAttributeCount, testAttributes, testContains, testKeySet, testPutAll
-
Field Details
-
pcontext
Portlet API Objects - Context -
request
Portlet API Objects - Request -
response
Portlet API Objects - Response -
session
Portlet API Objects - Session
-
-
Constructor Details
-
PortletWebContextTestCase
public PortletWebContextTestCase()The Default-Constructor for this class.
-
-
Method Details
-
init
Set up instance variables required by this test case.- Overrides:
init
in classContextTestCase<PortletWebContext>
-
tearDown
Tear down instance variables required by this test case.- Overrides:
tearDown
in classContextTestCase<PortletWebContext>
-
testApplicationScope
TestgetApplicationScope()
-
testEquals
Testequals()
andhashCode()
Copied from ContextBaseTestCase with customized creation of "other"- Overrides:
testEquals
in classContextTestCase<PortletWebContext>
-
testHeader
TestgetHeader()
-
testHeaderValues
TestgetHeaderValues()
-
testInitParam
TestgetInitParam()
-
testParam
TestgetParam()
-
testParamValues
TestgetParamValues()
-
testCookies
TestgetCookies()
-
testPristine
Test state of newly created instance- Overrides:
testPristine
in classContextTestCase<PortletWebContext>
-
testRelease
Testrelease()
-
testRequestScope
TestgetRequestScope()
-
testSessionScope
TestgetSessionScope()
-
testSessionScopeWithoutSession
TestgetSessionScope()
without Session -
checkMapSize
-
checkEntrySet
Test to ensure properentrySet()
and are modifiable optionally- Parameters:
map
- to testmodifiable
-true
map is modifiable
-
createContext
Create a new instance of the appropriate Context type for this test case- Specified by:
createContext
in classContextTestCase<PortletWebContext>
- Returns:
- new instance of the appropriate Context type
-