|
@@ -64,11 +64,14 @@ public class InputTextFrameTest implements UITestIface {
|
64
|
64
|
static JInternalFrameFixture window;
|
65
|
65
|
static TestConfigManagerMap cmmap;
|
66
|
66
|
static TestWritableFrameContainer owner;
|
|
67
|
+ static SwingController controller;
|
67
|
68
|
|
68
|
69
|
@BeforeClass
|
69
|
70
|
public static void setUpClass() {
|
70
|
71
|
IdentityManager.load();
|
71
|
|
- Main.setUI(new SwingController());
|
|
72
|
+ controller = new SwingController();
|
|
73
|
+ controller.onLoad();
|
|
74
|
+ Main.setUI(controller);
|
72
|
75
|
Main.ensureExists(PluginManager.getPluginManager(), "tabcompletion");
|
73
|
76
|
}
|
74
|
77
|
|
|
@@ -148,12 +151,11 @@ public class InputTextFrameTest implements UITestIface {
|
148
|
151
|
protected void setupWindow(final ConfigManager configManager) {
|
149
|
152
|
UIUtilities.initUISettings();
|
150
|
153
|
|
151
|
|
- mainframe = new FrameFixture((MainFrame) Main.getUI().getMainWindow());
|
|
154
|
+ mainframe = new FrameFixture(controller.getMainWindow());
|
152
|
155
|
mainframe.robot.settings().eventMode(EventMode.AWT);
|
153
|
156
|
|
154
|
157
|
final CustomInputFrame titf = new CustomInputFrame(owner,
|
155
|
|
- GlobalCommandParser.getGlobalCommandParser(),
|
156
|
|
- (SwingController) Main.getUI());
|
|
158
|
+ GlobalCommandParser.getGlobalCommandParser(), controller);
|
157
|
159
|
|
158
|
160
|
titf.setTitle("testing123");
|
159
|
161
|
|