gate.yam.translate
Class LaTeXConstantsTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.yam.translate.LaTeXConstantsTests
All Implemented Interfaces:
YamParserTreeConstants, LaTeXConstants, TranslationConstants, junit.framework.Test

public class LaTeXConstantsTests
extends junit.framework.TestCase
implements LaTeXConstants, YamParserTreeConstants, TranslationConstants

Check that all the YAM parse tree nodes are associated with an appropriate set of constants.


Field Summary
 
Fields inherited from interface gate.yam.translate.LaTeXConstants
citationAttr, citationAttrs, footnoteAttrs, imageAttrs, includeAttrs, latexConstantsTable, latexPredicatesTable
 
Fields inherited from interface gate.yam.parse.YamParserTreeConstants
JJTANCHOR, JJTBR, JJTCOLUMN, JJTCONTENTS, JJTCONTROL, JJTESCAPE, JJTHR, JJTLIST, JJTLISTITEM, JJTNBSP, jjtNodeName, JJTOLIST, JJTPARAGRAPH, JJTPLAIN, JJTPREDICATE, JJTROW, JJTSECTIONHEAD, JJTSECTIONTEXT, JJTSEP, JJTTABLE, JJTTABLESEP, JJTTARGETCONTROL, JJTTEXT, JJTTEXTORTABLE, JJTTITLE, JJTULIST, JJTUNIT, JJTURL, JJTVERBATIM, JJTWHSP, JJTWORD, JJTYAMDOCUMENT
 
Fields inherited from interface gate.yam.translate.TranslationConstants
CONSTANTEND, CONSTANTNAME, CONSTANTSTART
 
Constructor Summary
LaTeXConstantsTests(String testName)
          Create the test case.
 
Method Summary
 String[][] getConstantsTable()
          Array mapping node type name to start/end strings (DUMMY).
 String getPreamblePath()
          Get the path to the preamble resource (DUMMY).
 Object[][] getPredicatesTable()
          Array mapping predicate type name to attributes (DUMMY).
 void testConstants()
          Check LaTeXConstants against YamParserTreeConstants.
 
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

LaTeXConstantsTests

public LaTeXConstantsTests(String testName)
Create the test case.

Method Detail

testConstants

public void testConstants()
Check LaTeXConstants against YamParserTreeConstants.


getPreamblePath

public String getPreamblePath()
Get the path to the preamble resource (DUMMY).

Specified by:
getPreamblePath in interface TranslationConstants

getConstantsTable

public String[][] getConstantsTable()
Array mapping node type name to start/end strings (DUMMY).

Specified by:
getConstantsTable in interface TranslationConstants

getPredicatesTable

public Object[][] getPredicatesTable()
Array mapping predicate type name to attributes (DUMMY).

Specified by:
getPredicatesTable in interface TranslationConstants