KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > pth > AnyExpectedFailure


1 /*
2  * Author : Stephen Chong
3  * Created: Nov 24, 2003
4  */

5 package polyglot.pth;
6
7 import java.util.regex.Matcher JavaDoc;
8 import java.util.regex.Pattern JavaDoc;
9
10 import polyglot.util.ErrorInfo;
11
12 /**
13  *
14  */

15 public class AnyExpectedFailure extends ExpectedFailure {
16     public AnyExpectedFailure() {
17         super(-1);
18     }
19     public boolean matches(ErrorInfo e) {
20         return true;
21     }
22     
23     public boolean equals(Object JavaDoc o) {
24         if (o instanceof AnyExpectedFailure) {
25             return true;
26         }
27         return false;
28     }
29     public int hashCode() {
30         return (74298);
31     }
32     public String JavaDoc toString() {
33         return "(any remaining failures)";
34     }
35 }
36
Popular Tags