gate.wiki.antlr
Class AntlrYAMTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.wiki.antlr.AntlrYAMTest
All Implemented Interfaces:
junit.framework.Test

public class AntlrYAMTest
extends junit.framework.TestCase

JUnit testing for the YAM lexer generated by Antlr.

Author:
tamara

Constructor Summary
AntlrYAMTest(String name)
           
 
Method Summary
 boolean compare(BufferedReader test, BufferedReader correct)
           
static void main(String[] args)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void testTranslate()
          Tests translation from YAM to HTML
 void testTranslateAgain()
          Needed to make sure that code runs correctly if it's invoked twice
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

AntlrYAMTest

public AntlrYAMTest(String name)
Method Detail

main

public static void main(String[] args)

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

suite

public static junit.framework.Test suite()

testTranslate

public void testTranslate()
                   throws IOException
Tests translation from YAM to HTML

Throws:
IOException

testTranslateAgain

public void testTranslateAgain()
                        throws IOException
Needed to make sure that code runs correctly if it's invoked twice

Throws:
IOException

compare

public boolean compare(BufferedReader test,
                       BufferedReader correct)
                throws IOException
Throws:
IOException