@Vetoed public class MockedLogic extends Object implements LogicResult
Constructor and Description |
---|
MockedLogic() |
Modifier and Type | Method and Description |
---|---|
<T> T |
forwardTo(Class<T> type)
Returns an instance of the given (pre-registered) logic.
|
<T> T |
redirectTo(Class<T> type)
Returns an instance of that (pre-registered) logic.
|
public <T> T forwardTo(Class<T> type)
LogicResult
Returns an instance of the given (pre-registered) logic.
Any method called in the returned instance will cause a server side redirect (forward) to the called action.
forwardTo
in interface LogicResult
T
- controller typepublic <T> T redirectTo(Class<T> type)
LogicResult
Returns an instance of that (pre-registered) logic.
Any method called in the returned instance will cause a client side redirect to the called action, with the given parameters as HTTP parameters.
redirectTo
in interface LogicResult
T
- controller typeCopyright © 2014 Caelum. All rights reserved.