gate.yam.translate
Class YamTranslatorTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.yam.AbstractTranslatorTest
              extended by gate.yam.translate.YamTranslatorTests
All Implemented Interfaces:
junit.framework.Test

public class YamTranslatorTests
extends AbstractTranslatorTest

Unit test for YamTranslator.


Constructor Summary
YamTranslatorTests(String testName)
          Create the test case.
 
Method Summary
 Writer doTranslation(Reader testReader, Writer responseWriter, String outputType, String testName)
          Run the translator and get the response
 String getInputSuffix()
          Suffix of input files.
 String[] getOutputSuffixes()
          Suffix of output files.
 String[] getTestFilePaths()
          Paths of example test files.
 
Methods inherited from class gate.yam.AbstractTranslatorTest
testAll
 
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

YamTranslatorTests

public YamTranslatorTests(String testName)
Create the test case.

Method Detail

getTestFilePaths

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

Specified by:
getTestFilePaths in class AbstractTranslatorTest

getInputSuffix

public String getInputSuffix()
Suffix of input files.

Specified by:
getInputSuffix in class AbstractTranslatorTest

getOutputSuffixes

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

Specified by:
getOutputSuffixes in class AbstractTranslatorTest

doTranslation

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

Specified by:
doTranslation in class AbstractTranslatorTest
Throws:
Exception