процесс рефакторинга. Так как нужно запускать тесты на многих флагах, понадобилось внести дополнительные объекты.
This commit is contained in:
@@ -19,10 +19,8 @@ import ProjectData.SapforData.Functions.FuncInfo;
|
||||
import ProjectData.SapforData.Regions.ParallelRegion;
|
||||
import Repository.BugReport.BugReport;
|
||||
import Repository.Subscribes.Subscriber;
|
||||
import TestingSystem.Configuration.Configuration;
|
||||
import SapforTestingSystem.SapforConfiguration.SapforConfiguration;
|
||||
import SapforTestingSystem.SapforTask.SapforTask_2023;
|
||||
import SapforTestingSystem.SapforTasksPackage.SapforTasksPackage_2023;
|
||||
import TestingSystem.Configuration.Configuration;
|
||||
import TestingSystem.Tasks.TestCompilationTask;
|
||||
import TestingSystem.Tasks.TestRunTask;
|
||||
import TestingSystem.TasksPackage.TasksPackage;
|
||||
@@ -35,6 +33,7 @@ import java.util.LinkedHashMap;
|
||||
public enum Current {
|
||||
Undefined,
|
||||
//--
|
||||
SapforScenario,
|
||||
SapforEtalonTaskResult,//самый левый пакет
|
||||
SapforTaskResult,
|
||||
//--
|
||||
@@ -270,8 +269,8 @@ public enum Current {
|
||||
public static boolean HasSapforTasksPackage() {
|
||||
return get(Current.SapforTasksPackage) != null;
|
||||
}
|
||||
public static SapforTasksPackage_2023 getSapforTasksPackage() {
|
||||
return (SapforTasksPackage_2023) get(Current.SapforTasksPackage);
|
||||
public static SapforTestingSystem.SapforTasksPackage.SapforTasksPackage getSapforTasksPackage() {
|
||||
return (SapforTestingSystem.SapforTasksPackage.SapforTasksPackage) get(Current.SapforTasksPackage);
|
||||
}
|
||||
//-
|
||||
public static DefaultMutableTreeNode getProjectNode() {
|
||||
@@ -346,8 +345,8 @@ public enum Current {
|
||||
public static boolean HasSapforTask() {
|
||||
return get(Current.SapforTask) != null;
|
||||
}
|
||||
public static SapforTask_2023 getSapforTask() {
|
||||
return (SapforTask_2023) get(Current.SapforTask);
|
||||
public static SapforTestingSystem.SapforTask.SapforTask getSapforTask() {
|
||||
return (SapforTestingSystem.SapforTask.SapforTask) get(Current.SapforTask);
|
||||
}
|
||||
public static ProjectData.ProjectView getProjectView() {
|
||||
return (ProjectData.ProjectView) get(ProjectView);
|
||||
@@ -375,17 +374,25 @@ public enum Current {
|
||||
return (get(name) != null) && (((iDBObject) get(name)).id == id);
|
||||
}
|
||||
public static SapforTestingSystem.SapforConfigurationCommand.SapforConfigurationCommand getSapforConfigurationCommand() {
|
||||
return (SapforTestingSystem.SapforConfigurationCommand.SapforConfigurationCommand) get(Current.SapforConfigurationCommand);
|
||||
return (SapforTestingSystem.SapforConfigurationCommand.SapforConfigurationCommand) get(Current.SapforConfigurationCommand);
|
||||
}
|
||||
public static boolean HasSapforProfile() {
|
||||
return get(Current.SapforProfile)!=null;
|
||||
return get(Current.SapforProfile) != null;
|
||||
}
|
||||
public static GlobalData.SapforProfile.SapforProfile getSapforProfile(){
|
||||
public static GlobalData.SapforProfile.SapforProfile getSapforProfile() {
|
||||
return (GlobalData.SapforProfile.SapforProfile) get(Current.SapforProfile);
|
||||
}
|
||||
public static boolean HasSapforScenario() {
|
||||
return get(Current.SapforScenario) != null;
|
||||
}
|
||||
public static SapforTestingSystem.SapforScenario.SapforScenario getSapforScenario() {
|
||||
return (SapforTestingSystem.SapforScenario.SapforScenario) get(Current.SapforScenario);
|
||||
}
|
||||
//--------------------------------------------
|
||||
public String getDescription() {
|
||||
switch (this) {
|
||||
case SapforScenario:
|
||||
return "сценарий SAPFOR";
|
||||
case SapforProfile:
|
||||
return "Профиль SAPFOR";
|
||||
case SapforProfileSetting:
|
||||
|
||||
Reference in New Issue
Block a user