Package vg.model

Examples of vg.model.SQLite4JavaModel.quit()


      float best = -1;
      for(int i = 0; i < 10; i++) {
        long start = new Date().getTime();
        int id = CommandOpener.openFile("../Visual Graph/example/pcg_attr1.graphml", model);
        if(id < 0) {
          model.quit();
          Report.addRecord("TestSuite1", "pcg_attr1_graphml", "Error: Return value < 0", "sec");
          Assert.assertTrue("Error: Return value < 0", false);
          return;
        }
        long finish = new Date().getTime();
View Full Code Here


        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
      model.quit();
      Report.addRecord("TestSuite1", "pcg_attr1_graphml", Float.valueOf(best).toString(), "sec");
    } catch (Throwable ex) {
      ex.printStackTrace();
      Report.addRecord("TestSuite1", "pcg_attr1_graphml", "Exception: " + ex.getMessage(), "");
      Assert.assertTrue(ex.getMessage(), false);
View Full Code Here

      float best = -1;
      for(int i = 0; i < 10; i++) {
        long start = new Date().getTime();
        int id = CommandOpener.openFile("../Visual Graph/example/Big.gml", model);
        if(id < 0) {
          model.quit();
          Report.addRecord("TestSuite1", "big_gml", "Error: Return value < 0", "sec");
          Assert.assertTrue("Error: Return value < 0", false);
          return;
        }
        long finish = new Date().getTime();
View Full Code Here

        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
      model.quit();
      Report.addRecord("TestSuite1", "big_gml", Float.valueOf(best).toString(), "sec");
    } catch (Throwable ex) {
      ex.printStackTrace();
      Report.addRecord("TestSuite1", "big_gml", "Exception: " + ex.getMessage(), "");
      Assert.assertTrue(ex.getMessage(), false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.