@Component public class MockSerializationResult extends MockResult
proxifier, typeToUse
Constructor and Description |
---|
MockSerializationResult() |
MockSerializationResult(Proxifier proxifier,
ProxyInitializer initializer) |
MockSerializationResult(Proxifier proxifier,
ProxyInitializer initializer,
XStreamBuilder builder) |
MockSerializationResult(XStreamBuilder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
serializedResult()
Retrieve the string with the serialized (JSON/XML) Object if have one as response.
|
<T extends View> |
use(java.lang.Class<T> view)
Force result to use the defined view.
|
include, include, included, included, on, returnOnFinalMethods, used
forwardTo, forwardTo, forwardTo, notFound, nothing, of, of, permanentlyRedirectTo, permanentlyRedirectTo, permanentlyRedirectTo, redirectTo, redirectTo, redirectTo
public MockSerializationResult(Proxifier proxifier, ProxyInitializer initializer)
public MockSerializationResult(Proxifier proxifier, ProxyInitializer initializer, XStreamBuilder builder)
public MockSerializationResult()
public MockSerializationResult(XStreamBuilder builder)
public <T extends View> T use(java.lang.Class<T> view)
Result
use
in interface Result
use
in class MockResult
public java.lang.String serializedResult() throws java.lang.Exception
java.lang.Exception
Copyright © 2013 Caelum. All Rights Reserved.