T
- Type of the captured elementpublic class Capture<T>
extends java.lang.Object
implements java.io.Serializable
capture()
matcher. Knows if
something was captured or not (allows to capture a null value).Constructor and Description |
---|
Capture() |
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Return the captured value
|
boolean |
hasCaptured() |
void |
reset()
Will reset capture to a "nothing captured yet" state
|
void |
setValue(T value)
Used internally by the EasyMock framework to set the captured value
|
java.lang.String |
toString() |
public void reset()
public boolean hasCaptured()
public T getValue()
java.lang.AssertionError
- if nothing was captured yetpublic void setValue(T value)
value
- Value capturedpublic java.lang.String toString()
toString
in class java.lang.Object