Package core.tests.src.testovi

Examples of core.tests.src.testovi.Tester


   */
  private void testAssignment() {
    String result = "";
    Assignment assignment = new Assignment(file);
    for (TestFile tFile : testList) {
      Tester test = new Tester(file, tFile.getInput());
      if (tFile.getOutputTest()) {
        test.doOutput_test(tFile.getOutputTest(), tFile.getOutput());
      }
      if (tFile.getTimeTest()) {
        test.doElapsed_time_test(tFile.getTimeTest());
      }
      if (tFile.getCPUTimeTest()) {
        test.doCpu_time_test(tFile.getCPUTimeTest());
      }
      if (tFile.getMemoryTest()) {
        test.doMemory_test(tFile.getMemoryTest());
      }
      if (tFile.getThreadNumberTest()) {
        test.doThd_test(tFile.getThreadNumberTest());
      }
      if (tFile.gethandlersTest()) {
        test.doHnd_test(tFile.gethandlersTest());
      }
      if (tFile.getProcessIDTest()) {
        test.doPid_test(tFile.getProcessIDTest());
      }
      test.setTime_limit(tFile.getTimeLimit());
      test.start();
      if (test.getOutput().equalsIgnoreCase("false") || test.getHas_error().equalsIgnoreCase("false")) result = "PASS";
      else result = "FAILED";
    }
    assignment.setResult(result);
  }
View Full Code Here

TOP

Related Classes of core.tests.src.testovi.Tester

Copyright © 2018 www.massapicom. 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.