5 package jp.sourceforge.mikutoga.parser;
7 import junit.framework.TestCase;
13 public class ParseStageTest extends TestCase {
15 public ParseStageTest(String testName) {
20 protected void setUp() throws Exception {
25 protected void tearDown() throws Exception {
30 * Test of toString method, of class ParseStage.
33 public void testToString(){
34 System.out.println("toString");
38 instance = new Test1("A.B.C");
39 assertEquals("A.B.C", instance.toString());
41 instance = new Test1("");
42 assertEquals("", instance.toString());
45 instance = new Test1(null);
47 }catch(NullPointerException e){
51 instance = new Test2();
52 assertEquals("ParseStageTest$Test2", instance.toString());
57 class Test1 extends ParseStage{
58 public Test1(String txt){
63 class Test2 extends ParseStage{