gate.corpora
Class TestSerialCorpus

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--gate.corpora.TestSerialCorpus
All Implemented Interfaces:
junit.framework.Test

public class TestSerialCorpus
extends junit.framework.TestCase

Tests for the SerialCorpus classes


Field Summary
private static boolean DEBUG
          Debug flag
 
Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
TestSerialCorpus(String name)
          Construction
 
Method Summary
static void main(String[] args)
           
 void setUp()
          Fixture set up
static junit.framework.Test suite()
          Test suite routine for the test runner
 void testCreation()
          Corpus creation
 void testDocumentAddition()
          Add some documents
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
Debug flag
Constructor Detail

TestSerialCorpus

public TestSerialCorpus(String name)
Construction
Method Detail

setUp

public void setUp()
Fixture set up
Overrides:
setUp in class junit.framework.TestCase

testCreation

public void testCreation()
                  throws Exception
Corpus creation

testDocumentAddition

public void testDocumentAddition()
                          throws Exception
Add some documents

suite

public static junit.framework.Test suite()
Test suite routine for the test runner

main

public static void main(String[] args)