capture() matcher. Knows
if something was captured or not (allows to capture a null value).
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final CaptureType | |
| private final List |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public List | |
| public boolean | |
| public static < type of the class to be captured T> Capture | Returns: the new capture objectCreate a new capture instance that will keep only the last captured value. |
| public static < type of the class to be captured T> Capture | Returns: the new capture objectcapture type wanted type)Create a new capture instance with a specific |
| public void | |
| public void | setValue(T
Value captured value)Used internally by the EasyMock framework to add a new captured value. |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| type | back to summary |
|---|---|
| private final CaptureType type | |
| values | back to summary |
|---|---|
| private final List<T> values | |
| Capture | back to summary |
|---|---|
| private Capture() Default constructor. Only the last element will be captured | |
| Capture | back to summary |
|---|---|
| private Capture(CaptureType type) Constructor allowing to select the capture type.
| |
| getValue | back to summary |
|---|---|
| public T getValue() Return captured value.
| |
| getValues | back to summary |
|---|---|
| public List Return all captured values. It returns the actual list so you can modify it's content if needed.
| |
| hasCaptured | back to summary |
|---|---|
public boolean hasCaptured()
| |
| newInstance | back to summary |
|---|---|
| public static <T> Capture Create a new capture instance that will keep only the last captured value.
| |
| newInstance | back to summary |
|---|---|
| public static <T> Capture Create a new capture instance with a specific
| |
| reset | back to summary |
|---|---|
| public void reset() Will reset capture to a "nothing captured yet" state. | |
| setValue | back to summary |
|---|---|
| public void setValue(T value) Used internally by the EasyMock framework to add a new captured value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |