KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hansel > CheckFailureRunListener


1 package org.hansel;
2
3 import org.junit.runner.notification.Failure;
4 import org.junit.runner.notification.RunListener;
5
6 public class CheckFailureRunListener extends RunListener {
7     private boolean failures;
8     
9     public CheckFailureRunListener() {
10         failures = false;
11     }
12     
13     public boolean hasFailures() {
14         return failures;
15     }
16
17     @Override JavaDoc
18     public void testFailure(Failure failure) throws Exception JavaDoc {
19         failures = true;
20     }
21 }
22
Popular Tags