Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Dec 20, 2024
1 parent 594fde9 commit 0195a51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test-acceptance/src/org/omegat/gui/main/TestCoreGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ protected void onTearDown() throws Exception {

@Override
protected void onSetUp() throws Exception {
window = TestCoreGUIInitializer.getInstance().initialize();
window = TestCoreGUIInitializer.getInstance().initialize(robot());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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());
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0195a51

Please sign in to comment.