KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > pth > TestResult


1 /*
2  * Author : Stephen Chong
3  * Created: Feb 6, 2004
4  */

5 package polyglot.pth;
6
7 import java.io.Serializable JavaDoc;
8 import java.util.Date JavaDoc;
9
10 /**
11  *
12  */

13 public class TestResult implements Serializable JavaDoc {
14     public final String JavaDoc testName;
15     public final Date JavaDoc dateTestRun;
16     public final Date JavaDoc dateLastSuccess;
17     public final boolean testRunSucessful;
18     private final String JavaDoc failureMessage;
19     
20     public TestResult(Test t, Date JavaDoc dateTestRun, Date JavaDoc dateLastSuccess) {
21         this.dateTestRun = dateTestRun;
22         this.dateLastSuccess = dateLastSuccess;
23         this.testName = t.getName();
24         this.testRunSucessful = t.success();
25         this.failureMessage = t.getFailureMessage();
26     }
27 }
28
Popular Tags