[Test] The fifth wicket secret

Some time ago my coworker Alessandro Novarini had explored a way to test ajax events inside wicket tests. Look here !

Now you can explore another secret.
With this method you can see ALL the wicket paths you need to provide in your tests:


 public void printAllComponentPaths() {
    Page p = tester.getLastRenderedPage();
    p.visitChildren(new IVisitor() {

       @Override
       public Object component(Component component) {
          System.out.println(component.getPath());
          return null;
       }
    });
 }

Nessun commento: