|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.rees.scope.struts2.test.ScopeTestUtil
public class ScopeTestUtil
A utility for simplifying Struts2 unit testing against the interceptor stack
| Constructor Summary | |
|---|---|
ScopeTestUtil()
|
|
| Method Summary | |
|---|---|
static void |
extractScopeFields(Object target)
The current values of session and conversation fields that are annotated with SessionField and ConversationField are extracted
from the target object and placed into the session
and the active conversations available in the current thread. |
protected static String |
getActionSuffix()
|
static ConversationConfigurationProvider |
getConfigurationProvider()
|
static void |
injectScopeFields(Object target)
The target object's session and conversation fields that are annotated with SessionField and ConversationField are injected from
the session
and the active conversations available in the current thread. |
static void |
setConversationIdsOnRequest(org.springframework.mock.web.MockHttpServletRequest request,
Class<?> actionClass)
For unit testing, sets the conversation IDs of the conversations in the current thread onto a given mock request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScopeTestUtil()
| Method Detail |
|---|
public static ConversationConfigurationProvider getConfigurationProvider()
protected static String getActionSuffix()
public static void setConversationIdsOnRequest(org.springframework.mock.web.MockHttpServletRequest request,
Class<?> actionClass)
request - public static void extractScopeFields(Object target)
SessionField and ConversationField are extracted
from the target object and placed into the session
and the active conversations available in the current thread.
target - public static void injectScopeFields(Object target)
SessionField and ConversationField are injected from
the session
and the active conversations available in the current thread.
target -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||