Exemplo n.º 1
0
  protected void setUp() throws Exception {
    super.setUp();

    // creates the following test structure:
    // + base (foo1=bar1)
    //    + child (foo2=bar2)
    //    + child2 (foo2=bar2)
    //    + child3 (foo2=bar2)
    Node base = testRootNode.addNode("base");
    base.setProperty("foo1", "bar1");

    base.addNode("child").setProperty("foo2", "bar2");
    base.addNode("child2").setProperty("foo2", "bar2");
    base.addNode("child3").setProperty("foo2", "bar2");

    superuser.save();
  }
Exemplo n.º 2
0
 @Before
 public void setUp() {
   // initialize query object, we do not need a type manager for just testing parsing
   super.setUp(new QueryObject(null), null);
 }