обновленный json для сценария тестирования
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
package SapforTestingSystem.Json;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import com.google.gson.annotations.Expose;
|
||||
import javafx.util.Pair;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
public class Scenario_json {
|
||||
public class SapforPackage_json {
|
||||
@Expose
|
||||
public String id = "";
|
||||
@Expose
|
||||
public String flags = "";
|
||||
@Expose
|
||||
public List<PassCode_2021> codes = new Vector<>();
|
||||
@Expose
|
||||
public List<String> tests = new Vector<>();
|
||||
@Expose
|
||||
public List<Pair<String,String>> packages= new Vector<>(); //пары пакеты + флаги
|
||||
}
|
||||
11
src/SapforTestingSystem/Json/SapforScenario_json.java
Normal file
11
src/SapforTestingSystem/Json/SapforScenario_json.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package SapforTestingSystem.Json;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
public class SapforScenario_json {
|
||||
@Expose
|
||||
public List<String> tests = new Vector<>();
|
||||
@Expose
|
||||
public List<SapforPackage_json> packages= new Vector<>(); //пары пакеты + флаги
|
||||
}
|
||||
@@ -29,15 +29,6 @@ public class SapforConfigurationInterface {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
public static String getTransformationsNames(SapforConfiguration object) {
|
||||
Vector<String> res = new Vector<>();
|
||||
for (SapforConfigurationCommand command : Global.testingServer.db.sapforConfigurationCommands.Data.values()) {
|
||||
if (command.sapforconfiguration_id.equals(object.id)) {
|
||||
res.add(command.passCode.getDescription());
|
||||
}
|
||||
}
|
||||
return String.join(";", res);
|
||||
}
|
||||
//todo вывести.
|
||||
public static boolean validateCommands(SapforConfiguration sapforConfiguration, TextLog log) {
|
||||
//1. получить список всех команд.
|
||||
|
||||
Reference in New Issue
Block a user