|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.equanda.util.MockObject
public class MockObject
Simple object for testing, allows white box verifications in testcases.
| Constructor Summary | |
|---|---|
MockObject()
|
|
| Method Summary | |
|---|---|
void |
add(String msg)
Add a message which can be verified |
void |
clear()
Clear all the registered messages |
String |
get()
Get the next message from the queue (also removes the message). |
String |
getAll()
Get a string with all the messages in the queue, one on each line, does not change the queue. |
boolean |
verify(String msg)
Verify whether the next message is as expected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockObject()
| Method Detail |
|---|
public void add(String msg)
msg - public void clear()
public boolean verify(String msg)
msg -
public String get()
public String getAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||