|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.easymock.Capture<T>
T - Type of the captured elementpublic class Capture<T>
Will contain what was captured by the capture() matcher. Knows if
something was captured or not (allows to capture a null value).
| Constructor Summary | |
|---|---|
Capture()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Capture()
| Method Detail |
|---|
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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||