gate.yam
Class AbstractTranslatorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.yam.AbstractTranslatorTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
OldYamTranslatorTests, PrettyTranslatorTests, TreeTranslatorTests, YamTranslatorTests

public abstract class AbstractTranslatorTest
extends junit.framework.TestCase

Unit test for translators.


Constructor Summary
AbstractTranslatorTest(String testName)
          Create the test case
 
Method Summary
abstract  Writer doTranslation(Reader testReader, Writer responseWriter, String outputType, String testName)
          Run the translator and get the response
abstract  String getInputSuffix()
          Suffix of input files.
abstract  String[] getOutputSuffixes()
          Suffix of output files.
abstract  String[] getTestFilePaths()
          Paths of example test files.
 void testAll()
          Test using all the example files.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTranslatorTest

public AbstractTranslatorTest(String testName)
Create the test case

Method Detail

getTestFilePaths

public abstract String[] getTestFilePaths()
Paths of example test files.


getInputSuffix

public abstract String getInputSuffix()
Suffix of input files.


getOutputSuffixes

public abstract String[] getOutputSuffixes()
Suffix of output files.


testAll

public void testAll()
             throws Exception
Test using all the example files.

Throws:
Exception

doTranslation

public abstract Writer doTranslation(Reader testReader,
                                     Writer responseWriter,
                                     String outputType,
                                     String testName)
                              throws Exception
Run the translator and get the response

Throws:
Exception