| 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
gate.annotation.TestAnnotation
public class TestAnnotation
Tests for the Annotation classes
| Field Summary | |
|---|---|
protected  AnnotationSet | 
basicAS
An annotation set  | 
protected  Document | 
doc1
A document  | 
protected  FeatureMap | 
emptyFeatureMap
An empty feature map  | 
| Constructor Summary | |
|---|---|
TestAnnotation(String name)
Construction  | 
|
| Method Summary | |
|---|---|
 void | 
_testGap()
Test get with offset and no annotation starting at given offset  | 
protected  Annotation | 
createAnnotation(Integer id,
                 Node start,
                 Node end,
                 String type,
                 FeatureMap features)
 | 
static void | 
main(String[] args)
 | 
 void | 
setUp()
Fixture set up  | 
static junit.framework.Test | 
suite()
Test suite routine for the test runner  | 
 void | 
testAddWithNodes()
Test the annotations set add method that uses existing nodes  | 
 void | 
testAnnotationSet()
Test AnnotationSetImpl  | 
 void | 
testComplexGet()
Test complex get (with type, offset and feature contraints)  | 
 void | 
testExceptions()
Test exception throwing  | 
 void | 
testFeatureSubsumeMethods()
 | 
 void | 
testIsPartiallyCompatibleAndCompatible()
Test Coextensive  | 
 void | 
testIterator()
Test iterator  | 
 void | 
testIteratorRemove()
Test iterator remove  | 
 void | 
testOffsetIndex()
Test indexing by offset  | 
 void | 
testOverlapsAndCoextensive()
Test Overlaps  | 
 void | 
testRemove()
Test remove  | 
 void | 
testRemoveInexistant()
 | 
 void | 
testSetMethods()
Test Set methods  | 
 void | 
testTypeIndex()
Test type index  | 
| Methods inherited from class junit.framework.TestCase | 
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString | 
| Methods inherited from class junit.framework.Assert | 
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected Document doc1
protected AnnotationSet basicAS
protected FeatureMap emptyFeatureMap
| Constructor Detail | 
|---|
public TestAnnotation(String name)
| Method Detail | 
|---|
public void setUp()
           throws Exception
setUp in class junit.framework.TestCaseException
public void testOffsetIndex()
                     throws InvalidOffsetException
InvalidOffsetExceptionpublic void testExceptions()
public void testTypeIndex()
                   throws Exception
Exception
public void testAddWithNodes()
                      throws Exception
Exception
public void testComplexGet()
                    throws InvalidOffsetException
InvalidOffsetExceptionpublic void testRemove()
public void testRemoveInexistant()
                          throws Exception
Exceptionpublic void testIteratorRemove()
public void testIterator()
public void testSetMethods()
public void testAnnotationSet()
                       throws Exception
Exceptionpublic static junit.framework.Test suite()
public void _testGap()
              throws InvalidOffsetException
InvalidOffsetException
public void testOverlapsAndCoextensive()
                                throws InvalidOffsetException
InvalidOffsetException
public void testIsPartiallyCompatibleAndCompatible()
                                            throws InvalidOffsetException
InvalidOffsetExceptionpublic void testFeatureSubsumeMethods()
protected Annotation createAnnotation(Integer id,
                                      Node start,
                                      Node end,
                                      String type,
                                      FeatureMap features)
public static void main(String[] args)
  | 
GATE Version 3.1-2270  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||