*/
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);
}