java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.media.sep.test.parser.LexerTestCase
- All Implemented Interfaces:
- junit.framework.Test
- public class LexerTestCase
- extends junit.framework.TestCase
Class implementing a Test Case for the Sep Lexer class.
- Version:
- $Revision: 1.12 $ $Date: 2002/03/25 12:06:23 $
| Fields inherited from class junit.framework.TestCase |
|
|
Method Summary |
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testSepLexer()
Simple test method which gives to the lexer a whole script file "TestFetch.sep.tcf. |
void |
testTokensInSepLexer()
Simple test method which gives one particular token at a time from TestLexer.txt.tcf
file to the lexer, and verify's if the Lexer has produced the proper Token. |
| 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 |
_test_file_1
private java.lang.String _test_file_1
_test_file_2
private java.lang.String _test_file_2
LexerTestCase
public LexerTestCase(java.lang.String name)
suite
public static junit.framework.Test suite()
testTokensInSepLexer
public void testTokensInSepLexer()
- Simple test method which gives one particular token at a time from TestLexer.txt.tcf
file to the lexer, and verify's if the Lexer has produced the proper Token.
testSepLexer
public void testSepLexer()
- Simple test method which gives to the lexer a whole script file "TestFetch.sep.tcf.
If there are problems with the lexer it will fail at lexing.
main
public static void main(java.lang.String[] args)