Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.media.sep.test.parser
Class LexerTestCase  view LexerTestCase download LexerTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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 $

Field Summary
private  java.lang.String _test_file_1
           
private  java.lang.String _test_file_2
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
LexerTestCase(java.lang.String name)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_test_file_1

private java.lang.String _test_file_1

_test_file_2

private java.lang.String _test_file_2
Constructor Detail

LexerTestCase

public LexerTestCase(java.lang.String name)
Method Detail

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)