public void verifyBehaviour(Class classToVerify, String methodName) {
PlainTextListener textListener = new PlainTextListener(new PrintWriter(writer), new Timer());
BehaviourVerifier verifier = new BehaviourVerifier(textListener);
verifier.verifyBehaviour(new BehaviourClass(classToVerify, methodName, verifier));
textListener.printReport();
succeeded = succeeded && !textListener.hasBehaviourFailures();
}
public static void main(String[] args) {
try {