Ejemplo n.º 1
0
  @Override
  public void setUp() throws Exception {
    super.setUp();
    Node test = session.getRootNode().addNode("test", "nt:unstructured");

    saveCounter = 0;
    long t1 = System.currentTimeMillis();
    buildContent(DEPTH, test);
    session.save();
    long t2 = System.currentTimeMillis();
    if (log.isDebugEnabled()) {
      System.err.println("timing building=" + (t2 - t1) / 1000.0 + "s");
    }

    random = new Random(478923066);

    saveCounter = 0;
    long t3 = System.currentTimeMillis();
    buildReferences(DEPTH, test);
    session.save();
    long t4 = System.currentTimeMillis();
    if (log.isDebugEnabled()) {
      System.err.println("timing linking=" + (t4 - t3) / 1000.0 + "s");
    }
  }
Ejemplo n.º 2
0
 @After
 @Override
 public void tearDown() throws Exception {
   if (session.getRootNode().hasNode("test")) {
     session.getRootNode().getNode("test").remove();
   }
   session.save();
   super.tearDown();
 }
Ejemplo n.º 3
0
 @Before
 @Override
 public void setUp() throws Exception {
   super.setUp();
 }