Рефакторинг проходов запуска, остановки,публикации серверов
v++
This commit is contained in:
@@ -1,39 +1,9 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Passes.Pass;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.Passes.Server.TestingServerPass;
|
||||
import _VisualDVM.Repository.Server.ServerCode;
|
||||
import _VisualDVM.TestingSystem.Common.Group.Group;
|
||||
import _VisualDVM.TestingSystem.SAPFOR.SapforPackage.SapforPackage;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Vector;
|
||||
public class TestPass extends TestingServerPass {
|
||||
Group group;
|
||||
SapforPackage sapforPackage;
|
||||
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (Global.testingServer.db.CheckCurrent(Log, Group.class, SapforPackage.class)){
|
||||
group = Global.testingServer.db.groups.getUI().getCurrent();
|
||||
sapforPackage = Global.testingServer.db.sapforPackages.getUI().getCurrent();
|
||||
return SendRequest(ServerCode.TestCode, group.id+"\n"+sapforPackage.id, null, 0 );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public class TestPass extends Pass {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
|
||||
Vector<String> res = (Vector<String>) request.server_response.object;
|
||||
System.out.println("--");
|
||||
for (String path: res){
|
||||
System.out.println(Utils_.Brackets(path));
|
||||
}
|
||||
System.out.println("--");
|
||||
}
|
||||
@Override
|
||||
protected void performFinish() throws Exception {
|
||||
Global.mainModule.getPass(PassCode.SynchronizeTests).Do();
|
||||
Global.testingServer.PingFromClient();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user