コード例 #1
0
ファイル: FluxGraphTest.java プロジェクト: Jsalim/fluxgraph
 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) {
       }
     }
   }
 }
コード例 #2
0
ファイル: RexsterGraphTest.java プロジェクト: asaf/blueprints
  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();
        }
      }
    }
  }