diff --git a/test-acceptance/src/org/omegat/gui/main/TestCoreGUI.java b/test-acceptance/src/org/omegat/gui/main/TestCoreGUI.java index 3985fcd816..38e20836df 100644 --- a/test-acceptance/src/org/omegat/gui/main/TestCoreGUI.java +++ b/test-acceptance/src/org/omegat/gui/main/TestCoreGUI.java @@ -96,6 +96,6 @@ protected void onTearDown() throws Exception { @Override protected void onSetUp() throws Exception { - window = TestCoreGUIInitializer.getInstance().initialize(); + window = TestCoreGUIInitializer.getInstance().initialize(robot()); } } diff --git a/test-acceptance/src/org/omegat/gui/main/TestCoreGUIInitializer.java b/test-acceptance/src/org/omegat/gui/main/TestCoreGUIInitializer.java index d9004d738b..5a62daf2f4 100644 --- a/test-acceptance/src/org/omegat/gui/main/TestCoreGUIInitializer.java +++ b/test-acceptance/src/org/omegat/gui/main/TestCoreGUIInitializer.java @@ -33,6 +33,7 @@ import javax.swing.SwingUtilities; import org.apache.commons.io.FileUtils; +import org.assertj.swing.core.Robot; import org.assertj.swing.edt.GuiActionRunner; import org.assertj.swing.fixture.FrameFixture; @@ -63,7 +64,7 @@ public static TestCoreGUIInitializer getInstance() { return initializer; } - public synchronized FrameFixture initialize() throws IOException { + public synchronized FrameFixture initialize(Robot robot) throws IOException { if (frame == null) { Path tmp = Files.createTempDirectory("omegat"); FileUtils.forceDeleteOnExit(tmp.toFile()); @@ -91,7 +92,7 @@ public synchronized FrameFixture initialize() throws IOException { }); return mw.getApplicationFrame(); }); - mainWindow = new FrameFixture(frame); + mainWindow = new FrameFixture(robot, frame); mainWindow.show(); } return mainWindow;