|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--gate.CookBook
NOTE: this class has been REPLACED by the GateExamples package; see http://gate.ac.uk/GateExamples/doc/.
This class provides examples of using the GATE APIs. Read this documentation along with a copy of the source code.
The CookBook is set up as
part of the GATE test suite (using the
Field Summary | |
(package private) Corpus |
corpus
A corpus |
private static boolean |
DEBUG
Debug flag |
(package private) Document |
doc1
A document |
(package private) Document |
doc2
Another document |
private static String |
usage
String to print when wrong command-line args |
Fields inherited from class junit.framework.TestCase |
fName |
Constructor Summary | |
CookBook(String name)
Construction |
Method Summary | |
static void |
main(String[] args)
Main function: an example of embedding GATE-based batch processing. |
void |
setUp()
Fixture set up: initialise members before each test method |
static junit.framework.Test |
suite()
Test suite routine for the test runner |
void |
testAddingAnnotations()
Adding annotations to documents |
void |
testAddingDocuments()
Adding documents to a corpus |
void |
testCorpusConstruction()
Constructing a corpus |
void |
testResourceCreation()
Constructing a resource |
void |
testUsingFeatures()
Using the FeatureMap interface |
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 |
|
Field Detail |
private static final boolean DEBUG
Corpus corpus
Document doc1
Document doc2
private static String usage
Constructor Detail |
public CookBook(String name)
Method Detail |
public void testResourceCreation() throws GateException
public void testCorpusConstruction() throws GateException
public void testAddingDocuments() throws GateException
public void testAddingAnnotations()
public void testUsingFeatures()
public static void main(String[] args) throws Exception
public void setUp() throws GateException, IOException
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |