Result.OutputException
Constructor and Description |
---|
MockResult() |
Modifier and Type | Method and Description |
---|---|
void |
add(T result)
Adds an object into this result.
|
protected T |
bless(T result)
Handles the
added object. |
static <T> MockResult<T> |
create()
Creates a new instance.
|
List<T> |
getResults()
Returns the previously
added objects. |
public static <T> MockResult<T> create()
T
- the target data typepublic void add(T result)
Result
protected T bless(T result)
added
object.
Clients can override this method, and replace the added object with another object.result
- the original added objectpublic List<T> getResults()
added
objects.
Clients can edit the result objects by overriding bless(Object)
method.Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.