OSDN Git Service

文字列化処理変更
authorOlyutorskii <olyutorskii@users.osdn.me>
Tue, 16 Apr 2013 23:10:03 +0000 (08:10 +0900)
committerOlyutorskii <olyutorskii@users.osdn.me>
Tue, 16 Apr 2013 23:10:03 +0000 (08:10 +0900)
src/main/java/jp/sfjp/mikutoga/bin/parser/ParseStage.java
src/test/java/jp/sfjp/mikutoga/bin/parser/ParseStageTest.java

index 68a7325..1198b7d 100644 (file)
@@ -39,4 +39,14 @@ public class ParseStage {
         return this.no;
     }
 
+    /**
+     * {@inheritDoc}
+     * @return {@inheritDoc}
+     */
+    @Override
+    public String toString(){
+        String result = "parse stage#:" + this.no;
+        return result;
+    }
+
 }
index 5bae2ca..ad11fc4 100644 (file)
@@ -51,4 +51,18 @@ public class ParseStageTest {
         return;
     }
 
+    /**
+     *
+     */
+    @Test
+    public void testToString(){
+        System.out.println("toString");
+
+        ParseStage p = new ParseStage();
+
+        assertEquals("parse stage#:" + p.getNo(), p.toString());
+
+        return;
+    }
+
 }