GATE
Version 3.1-2270

gate
Class CookBook

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.CookBook
All Implemented Interfaces:
junit.framework.Test

public class CookBook
extends junit.framework.TestCase

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


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, 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
 

Constructor Detail

CookBook

public CookBook(String name)
Construction

Method Detail

testResourceCreation

public void testResourceCreation()
                          throws GateException
Constructing a resource

Throws:
GateException

testCorpusConstruction

public void testCorpusConstruction()
                            throws GateException
Constructing a corpus

Throws:
GateException

testAddingDocuments

public void testAddingDocuments()
                         throws GateException
Adding documents to a corpus

Throws:
GateException

testAddingAnnotations

public void testAddingAnnotations()
Adding annotations to documents


testUsingFeatures

public void testUsingFeatures()
Using the FeatureMap interface


main

public static void main(String[] args)
                 throws Exception
Main function: an example of embedding GATE-based batch processing. The method:

Throws:
Exception

setUp

public void setUp()
           throws GateException,
                  IOException
Fixture set up: initialise members before each test method

Overrides:
setUp in class junit.framework.TestCase
Throws:
GateException
IOException

suite

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


GATE
Version 3.1-2270