samples/visitor/22-self/src-test3.0/org/apidesign/test/visitor/PrintRealTest.java
1.1 --- a/samples/visitor/22-self/src-test3.0/org/apidesign/test/visitor/PrintRealTest.java Sat Jun 14 22:38:00 2008 +0200
1.2 +++ b/samples/visitor/22-self/src-test3.0/org/apidesign/test/visitor/PrintRealTest.java Sat Jun 14 22:59:00 2008 +0200
1.3 @@ -26,8 +26,8 @@
1.4 assertEquals("1.0 - 2.0", print.sb.toString());
1.5 }
1.6
1.7 - @Test public void visitorReadyForVersion3_0() {
1.8 - class PrintVisitor3_0 implements Visitor.Version3_0 {
1.9 + @Test public void visitorReadyForVersion30() {
1.10 + class PrintVisitor30 implements Visitor.Version30 {
1.11 StringBuffer sb = new StringBuffer();
1.12
1.13 public boolean visitUnknown(Expression exp, Visitor self) {
1.14 @@ -56,7 +56,7 @@
1.15 Number two = PrintTest.newNumber(2);
1.16 Expression plus = PrintOfMinusStructureTest.newMinus(one, two);
1.17
1.18 - PrintVisitor3_0 print = new PrintVisitor3_0();
1.19 + PrintVisitor30 print = new PrintVisitor30();
1.20 plus.visit(Visitor.create(print));
1.21
1.22 assertEquals("1.0 - 2.0", print.sb.toString());
1.23 @@ -65,7 +65,7 @@
1.24 Real three = newReal(3);
1.25 Expression realPlus = PrintOfMinusStructureTest.newMinus(five, three);
1.26
1.27 - PrintVisitor3_0 printReal = new PrintVisitor3_0();
1.28 + PrintVisitor30 printReal = new PrintVisitor30();
1.29 realPlus.visit(Visitor.create(printReal));
1.30
1.31 assertEquals("5.0 - 3.0", printReal.sb.toString());