|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.util.TestEqual
public class TestEqual
This class provides some static utility methods such as equality test for annotation sets and documents. They are mainly used by test classes.
| Field Summary | |
|---|---|
static String |
message
If set to true, explanation messages will be printed when a test fails. |
| Constructor Summary | |
|---|---|
TestEqual()
|
|
| Method Summary | |
|---|---|
static boolean |
annotationSetsEqual(AnnotationSet as1,
AnnotationSet as2)
Two AnnotationSet are equal if their name, the documents of which belong to the AnnotationSets and annotations from the sets are the same |
protected static boolean |
check(Object a,
Object b)
Check: test 2 objects for equality |
static boolean |
documentsEqual(Document doc1,
Document doc2)
Checks two documents for equality. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String message
| Constructor Detail |
|---|
public TestEqual()
| Method Detail |
|---|
public static boolean documentsEqual(Document doc1,
Document doc2)
doc1 - a documentdoc2 - another document
public static boolean annotationSetsEqual(AnnotationSet as1,
AnnotationSet as2)
protected static boolean check(Object a,
Object b)
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||