Author: ivaynberg
Date: Tue Mar 23 05:23:58 2010
New Revision: 926464

URL: http://svn.apache.org/viewvc?rev=926464&view=rev
Log:
a more comprehensive test

Modified:
    
wicket/branches/wicket-1.4.x/wicket/src/test/java/org/apache/wicket/VisitorTest.java

Modified: 
wicket/branches/wicket-1.4.x/wicket/src/test/java/org/apache/wicket/VisitorTest.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/test/java/org/apache/wicket/VisitorTest.java?rev=926464&r1=926463&r2=926464&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.4.x/wicket/src/test/java/org/apache/wicket/VisitorTest.java
 (original)
+++ 
wicket/branches/wicket-1.4.x/wicket/src/test/java/org/apache/wicket/VisitorTest.java
 Tue Mar 23 05:23:58 2010
@@ -31,6 +31,7 @@ import org.apache.wicket.markup.html.for
  * | +-E
  * |   +-F
  * +-G
+ *   +-H
  * </code>
  * 
  * @author igor.vaynberg
@@ -52,7 +53,7 @@ public class VisitorTest extends WicketT
                        }
                });
 
-               Assert.assertEquals("BCDEFG", path.toString());
+               Assert.assertEquals("BCDEFGH", path.toString());
        }
 
        public void testContinuePostOrder()
@@ -69,10 +70,10 @@ public class VisitorTest extends WicketT
                        }
                });
 
-               Assert.assertEquals("BDFECGA", path.toString());
+               Assert.assertEquals("BDFECHGA", path.toString());
        }
 
-       public void testDoNotGoDeeper1()
+       public void testStop()
        {
                final StringBuilder path = new StringBuilder();
 
@@ -93,7 +94,7 @@ public class VisitorTest extends WicketT
                Assert.assertEquals("RESULT", result);
        }
 
-       public void testStop()
+       public void testDoNotGoDeeper1()
        {
                final StringBuilder path = new StringBuilder();
 
@@ -110,7 +111,7 @@ public class VisitorTest extends WicketT
                                return CONTINUE_TRAVERSAL;
                        }
                });
-               Assert.assertEquals("BCG", path.toString());
+               Assert.assertEquals("BCGH", path.toString());
        }
 
        public void testDoNotGoDeeper2()
@@ -130,7 +131,7 @@ public class VisitorTest extends WicketT
                                return CONTINUE_TRAVERSAL;
                        }
                });
-               Assert.assertEquals("BCDEG", path.toString());
+               Assert.assertEquals("BCDEGH", path.toString());
        }
 
 
@@ -145,12 +146,14 @@ public class VisitorTest extends WicketT
                        WebMarkupContainer e = new WebMarkupContainer("E");
                        WebMarkupContainer f = new WebMarkupContainer("F");
                        WebMarkupContainer g = new WebMarkupContainer("G");
+                       WebMarkupContainer h = new WebMarkupContainer("H");
                        add(b);
                        add(c);
                        c.add(d);
                        c.add(e);
                        e.add(f);
                        add(g);
+                       g.add(h);
                }
 
        }


Reply via email to