no message
This commit is contained in:
@@ -34,14 +34,18 @@ public class PackageModeSupervisor {
|
||||
String packed = FileUtils.readFileToString(scenarioFile, Charset.defaultCharset());
|
||||
scenario = Utils.gson.fromJson(packed, Scenario_json.class);
|
||||
//--->>
|
||||
/*
|
||||
for (String test : scenario.tests)
|
||||
waitingTests.push(test);
|
||||
|
||||
*/
|
||||
}
|
||||
public boolean isFinished(String test){
|
||||
return true;
|
||||
}
|
||||
//--->>
|
||||
public void checkActiveTests() throws Exception {
|
||||
public boolean checkActiveTests() throws Exception {
|
||||
/*
|
||||
Vector<String> finishedTests = new Vector<>();
|
||||
for (String test: activeTests){
|
||||
if (isFinished(test))
|
||||
@@ -50,8 +54,11 @@ public class PackageModeSupervisor {
|
||||
for (String test: finishedTests){
|
||||
activeTests.remove(test);
|
||||
}
|
||||
*/
|
||||
return true;
|
||||
}
|
||||
public void startWaitingTests() throws Exception {
|
||||
public boolean startWaitingTests() throws Exception {
|
||||
return true;
|
||||
}
|
||||
//--->>
|
||||
public void Do() {
|
||||
@@ -60,11 +67,9 @@ public class PackageModeSupervisor {
|
||||
//--->>
|
||||
init();
|
||||
//--->>
|
||||
do {
|
||||
checkActiveTests();
|
||||
startWaitingTests();
|
||||
while (checkActiveTests()&&startWaitingTests()){
|
||||
Thread.sleep(1000);
|
||||
} while (!activeTests.isEmpty() && !waitingTests.isEmpty());
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
4
src/SapforTestingSystem/SapforTest/SapforTest.java
Normal file
4
src/SapforTestingSystem/SapforTest/SapforTest.java
Normal file
@@ -0,0 +1,4 @@
|
||||
package SapforTestingSystem.SapforTest;
|
||||
public class SapforTest {
|
||||
public String description;
|
||||
}
|
||||
Reference in New Issue
Block a user