@Vetoed public class MockResult extends AbstractResult
| Modifier and Type | Field and Description |
|---|---|
protected Proxifier |
proxifier |
protected Class<?> |
typeToUse |
| Constructor and Description |
|---|
MockResult() |
MockResult(Proxifier proxifier) |
| Modifier and Type | Method and Description |
|---|---|
Result |
include(Object value)
Uses the type name to include.
|
Result |
include(String key,
Object value)
Stores an attribute in the result.
|
Map<String,Object> |
included()
Return all included attributes via Result.include();
|
<T> T |
included(String key) |
Result |
on(Class<? extends Exception> exception)
Add an
Exception to be handled by Exception Handler. |
protected <T> MethodInvocation<T> |
returnOnFinalMethods(Class<T> view) |
<T extends View> |
use(Class<T> view)
Force result to use the defined view.
|
boolean |
used()
Whether this result was used.
|
forwardTo, forwardTo, forwardTo, notFound, nothing, of, of, permanentlyRedirectTo, permanentlyRedirectTo, permanentlyRedirectTo, redirectTo, redirectTo, redirectTopublic MockResult(Proxifier proxifier)
public MockResult()
public Result include(String key, Object value)
Resultkey - a String specifying the key of the attributevalue - the object to be storedpublic Result on(Class<? extends Exception> exception)
ResultException to be handled by Exception Handler.exception - The exception to handle.public <T extends View> T use(Class<T> view)
Resultprotected <T> MethodInvocation<T> returnOnFinalMethods(Class<T> view)
public boolean used()
Resultpublic <T> T included(String key)
key - public Map<String,Object> included()
Resultpublic Result include(Object value)
value - the object to be storedTypeNameExtractorCopyright © 2014 Caelum. All rights reserved.