mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +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);
|
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) {
|
public List<StepResult> play(IPlugInPort plugInPort, DIYTest test) {
|
||||||
LOG.info("Playing test: " + test.getName());
|
LOG.info("Playing test: " + test.getName());
|
||||||
|
|||||||
@@ -176,8 +176,8 @@ public class TestMenuPlugin implements IPlugIn {
|
|||||||
|
|
||||||
final File file = DialogFactory.getInstance().showOpenDialog(FileFilterEnum.TEST.getFilter(),
|
final File file = DialogFactory.getInstance().showOpenDialog(FileFilterEnum.TEST.getFilter(),
|
||||||
null, FileFilterEnum.TEST.getExtensions()[0], null);
|
null, FileFilterEnum.TEST.getExtensions()[0], null);
|
||||||
|
|
||||||
final Presenter presenter = new Presenter(new MockView());
|
plugInPort.createNewProject();
|
||||||
|
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
swingUI.executeBackgroundTask(new ITask<List<StepResult>>() {
|
swingUI.executeBackgroundTask(new ITask<List<StepResult>>() {
|
||||||
@@ -185,7 +185,7 @@ public class TestMenuPlugin implements IPlugIn {
|
|||||||
@Override
|
@Override
|
||||||
public List<StepResult> doInBackground() throws Exception {
|
public List<StepResult> doInBackground() throws Exception {
|
||||||
DIYTest test = projectFileManager.deserializeTestFromFile(file.getAbsolutePath());
|
DIYTest test = projectFileManager.deserializeTestFromFile(file.getAbsolutePath());
|
||||||
List<StepResult> testResults = testPlayer.play(presenter, test);
|
List<StepResult> testResults = testPlayer.play(plugInPort, test);
|
||||||
return testResults;
|
return testResults;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user