Beispiel #1
0
 public void doTestSuite(final TestSuite testSuite) throws Exception {
   for (Method method : testSuite.getClass().getDeclaredMethods()) {
     if (method.getName().startsWith("test")) {
       System.out.println("Testing " + method.getName() + "...");
       method.invoke(testSuite);
       try {
         if (this.currentGraph != null)
           // this.currentGraph.clear();
           this.currentGraph.shutdown();
       } catch (Exception e) {
       }
     }
   }
 }
Beispiel #2
0
  public void doTestSuite(final TestSuite testSuite) throws Exception {
    // "http://127.0.0.1:8182/graphs/emptygraph"
    String doTest = System.getProperty("testRexsterGraph", "true");
    if (doTest.equals("true")) {

      this.username = System.getProperty("username");
      this.password = System.getProperty("password");

      this.resetGraph();
      for (Method method : testSuite.getClass().getDeclaredMethods()) {
        if (method.getName().startsWith("test")) {
          System.out.println("Testing " + method.getName() + "...");
          this.resetGraph();
          method.invoke(testSuite);
          this.resetGraph();
        }
      }
    }
  }