mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
test update
This commit is contained in:
@@ -15,7 +15,7 @@ public class TestPlayer {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(TestPlayer.class);
|
||||
|
||||
public static final int DELAY_MS = 5;
|
||||
public static final int DELAY_MS = 2;
|
||||
|
||||
public List<StepResult> play(IPlugInPort plugInPort, DIYTest test) {
|
||||
LOG.info("Playing test: " + test.getName());
|
||||
|
||||
@@ -177,7 +177,7 @@ public class TestMenuPlugin implements IPlugIn {
|
||||
final File file = DialogFactory.getInstance().showOpenDialog(FileFilterEnum.TEST.getFilter(),
|
||||
null, FileFilterEnum.TEST.getExtensions()[0], null);
|
||||
|
||||
final Presenter presenter = new Presenter(new MockView());
|
||||
plugInPort.createNewProject();
|
||||
|
||||
if (file != null) {
|
||||
swingUI.executeBackgroundTask(new ITask<List<StepResult>>() {
|
||||
@@ -185,7 +185,7 @@ public class TestMenuPlugin implements IPlugIn {
|
||||
@Override
|
||||
public List<StepResult> doInBackground() throws Exception {
|
||||
DIYTest test = projectFileManager.deserializeTestFromFile(file.getAbsolutePath());
|
||||
List<StepResult> testResults = testPlayer.play(presenter, test);
|
||||
List<StepResult> testResults = testPlayer.play(plugInPort, test);
|
||||
return testResults;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user