JML

org.multijava.util.lexgen
Class TestLexgenLexer

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.multijava.util.testing.TestCase
              extended byorg.multijava.util.lexgen.TestLexgenLexer
All Implemented Interfaces:
LexgenLexerTokenTypes, junit.framework.Test

public class TestLexgenLexer
extends TestCase
implements LexgenLexerTokenTypes

TestLexgenLexer.java

Version:
$Revision: 1.4 $
Author:
Curtis Clifton

Field Summary
 
Fields inherited from class org.multijava.util.testing.TestCase
NEWLINE
 
Fields inherited from class junit.framework.TestCase
 
Fields inherited from interface org.multijava.util.lexgen.LexgenLexerTokenTypes
DOT, DUMMY, EOF, ESC, HEX_DIGIT, IDENT, ML_COMMENT, NULL_TREE_LOOKAHEAD, OCT_DIGIT, SHARP, SL_COMMENT, STRING, VOCAB, WS
 
Constructor Summary
TestLexgenLexer(String name)
           
 
Method Summary
private  String[] lexThis(String source)
           
 void test_string_1()
           
 void test_string_2()
           
 void test_string_3()
           
 void test_string_4()
           
 void test_string_5()
           
 void test_string_6()
           
 void test_string_7()
           
 void test_string_8()
           
private  void test_string_helper(String source, String[] expected)
           
 
Methods inherited from class org.multijava.util.testing.TestCase
assertDiff, assertEquals
 
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
 

Constructor Detail

TestLexgenLexer

public TestLexgenLexer(String name)
Method Detail

test_string_helper

private void test_string_helper(String source,
                                String[] expected)
                         throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_1

public void test_string_1()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_2

public void test_string_2()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_3

public void test_string_3()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_4

public void test_string_4()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_5

public void test_string_5()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_6

public void test_string_6()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_7

public void test_string_7()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

test_string_8

public void test_string_8()
                   throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

lexThis

private String[] lexThis(String source)
                  throws antlr.TokenStreamException
Throws:
antlr.TokenStreamException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.