gate.yam.translate
Class HtmlConstantsTests

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

public class HtmlConstantsTests
extends junit.framework.TestCase
implements HtmlConstants, 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.HtmlConstants
footnoteAttrs, htmlConstantsTable, htmlPredicatesTable, imageAttrs, includeAttrs
 
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
HtmlConstantsTests(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 HtmlConstants 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

HtmlConstantsTests

public HtmlConstantsTests(String testName)
Create the test case.

Method Detail

testConstants

public void testConstants()
Check HtmlConstants 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