gate.creole
Class TestCreole

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

public class TestCreole
extends junit.framework.TestCase

CREOLE test class


Constructor Summary
TestCreole(String name)
          Construction
 
Method Summary
protected  boolean allAutoloaders(List l)
          Utility method to check that a list of resources are all auto-loading.
static void printProperty(PropertyDescriptor prop)
          Utility method to print out the values of a property descriptor
 void setUp()
          Fixture set up
static junit.framework.Test suite()
          Test suite routine for the test runner
 void tearDown()
          Put things back as they should be after running tests (reinitialise the CREOLE register).
 void testArbitraryMetadata()
          Test arbitrary metadata elements on resources
 void testClassIndex()
          Test resource indexing by class
 void testComments()
          Test comments on resources
 void testDefaultRun()
          Test default run() on processing resources
 void testDiscovery()
          Test resource discovery
 void testFactory()
          Test the Factory resource creation provisions
 void testInstanceLists()
          Test the getInstances methods on CreoleRegister
 void testIntrospection()
          Test resource introspection
 void testLoading()
          Test resource loading
 void testMetadata()
          Test resource metadata
 void testParamAsLists()
          Test param as lists
 void testParameterDefaults1()
          Test parameter defaults
 void testParameterDefaults2()
          Test parameter defaults (2)
 void testParameters()
          Test parameters
 void testToolsAndPrivate()
          Test TOOLS and PRIVATE attributes
 void testTypeLists()
          Test type lists
 void testViews()
          Test view registration
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCreole

public TestCreole(String name)
           throws GateException
Construction

Throws:
GateException
Method Detail

setUp

public void setUp()
           throws Exception
Fixture set up

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Put things back as they should be after running tests (reinitialise the CREOLE register).

Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testInstanceLists

public void testInstanceLists()
                       throws Exception
Test the getInstances methods on CreoleRegister

Throws:
Exception

testViews

public void testViews()
               throws Exception
Test view registration

Throws:
Exception

allAutoloaders

protected boolean allAutoloaders(List l)
Utility method to check that a list of resources are all auto-loading.


testDiscovery

public void testDiscovery()
                   throws Exception
Test resource discovery

Throws:
Exception

testMetadata

public void testMetadata()
                  throws Exception
Test resource metadata

Throws:
Exception

testToolsAndPrivate

public void testToolsAndPrivate()
                         throws Exception
Test TOOLS and PRIVATE attributes

Throws:
Exception

testLoading

public void testLoading()
                 throws Exception
Test resource loading

Throws:
Exception

testClassIndex

public void testClassIndex()
                    throws Exception
Test resource indexing by class

Throws:
Exception

testTypeLists

public void testTypeLists()
                   throws Exception
Test type lists

Throws:
Exception

testComments

public void testComments()
                  throws Exception
Test comments on resources

Throws:
Exception

testParameterDefaults1

public void testParameterDefaults1()
                            throws Exception
Test parameter defaults

Throws:
Exception

testParameterDefaults2

public void testParameterDefaults2()
                            throws Exception
Test parameter defaults (2)

Throws:
Exception

testParamAsLists

public void testParamAsLists()
                      throws Exception
Test param as lists

Throws:
Exception

testParameters

public void testParameters()
                    throws Exception
Test parameters

Throws:
Exception

testDefaultRun

public void testDefaultRun()
                    throws Exception
Test default run() on processing resources

Throws:
Exception

testArbitraryMetadata

public void testArbitraryMetadata()
                           throws Exception
Test arbitrary metadata elements on resources

Throws:
Exception

testIntrospection

public void testIntrospection()
                       throws Exception
Test resource introspection

Throws:
Exception

testFactory

public void testFactory()
                 throws Exception
Test the Factory resource creation provisions

Throws:
Exception

printProperty

public static void printProperty(PropertyDescriptor prop)
Utility method to print out the values of a property descriptor

See Also:
PropertyDescriptor

suite

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