|
@@ -42,9 +42,8 @@ import javax.swing.JPanel;
|
42
|
42
|
import javax.swing.JTextField;
|
43
|
43
|
import javax.swing.text.JTextComponent;
|
44
|
44
|
|
45
|
|
-import org.fest.swing.core.EventMode;
|
46
|
|
-import org.fest.swing.core.matcher.JButtonByTextMatcher;
|
47
|
|
-import org.fest.swing.core.matcher.JLabelByTextMatcher;
|
|
45
|
+import org.fest.swing.core.matcher.JButtonMatcher;
|
|
46
|
+import org.fest.swing.core.matcher.JLabelMatcher;
|
48
|
47
|
import org.fest.swing.fixture.DialogFixture;
|
49
|
48
|
import org.fest.swing.fixture.JLabelFixture;
|
50
|
49
|
import org.fest.swing.fixture.JPanelFixture;
|
|
@@ -60,14 +59,13 @@ public class ActionEditorDialogTest {
|
60
|
59
|
|
61
|
60
|
@BeforeClass
|
62
|
61
|
public static void setUpClass() throws InvalidIdentityFileException {
|
|
62
|
+ IdentityManager.load();
|
63
|
63
|
Main.setUI(new SwingController());
|
|
64
|
+ ActionManager.init();
|
64
|
65
|
}
|
65
|
66
|
|
66
|
67
|
@Before
|
67
|
68
|
public void setUp() throws InvalidIdentityFileException {
|
68
|
|
- IdentityManager.load();
|
69
|
|
- ActionManager.init();
|
70
|
|
-
|
71
|
69
|
if (!ActionManager.getGroups().containsKey("amd-ui-test1")) {
|
72
|
70
|
ActionManager.makeGroup("amd-ui-test1");
|
73
|
71
|
}
|
|
@@ -88,9 +86,9 @@ public class ActionEditorDialogTest {
|
88
|
86
|
public void testName() {
|
89
|
87
|
setupWindow(null);
|
90
|
88
|
|
91
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
89
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
92
|
90
|
textBox().requireEnabled().requireEditable().requireEmpty();
|
93
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireDisabled();
|
|
91
|
+ window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
94
|
92
|
}
|
95
|
93
|
|
96
|
94
|
@Test
|
|
@@ -99,27 +97,27 @@ public class ActionEditorDialogTest {
|
99
|
97
|
// 'Fix' was disabling the add trigger button when name was invalid
|
100
|
98
|
setupWindow(null);
|
101
|
99
|
|
102
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
100
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
103
|
101
|
textBox().requireEnabled().requireEditable().requireEmpty();
|
104
|
|
- window.panel(new ClassFinder<JPanel>(ActionTriggersPanel.class, null)).
|
105
|
|
- button(JButtonByTextMatcher.withText("Add")).requireDisabled();
|
|
102
|
+ window.panel(new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null)).
|
|
103
|
+ button(JButtonMatcher.withText("Add")).requireDisabled();
|
106
|
104
|
}
|
107
|
105
|
|
108
|
106
|
@Test
|
109
|
107
|
public void testTriggerWithNoArgs() {
|
110
|
108
|
setupWindow(null);
|
111
|
109
|
|
112
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
110
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
113
|
111
|
textBox().enterText("test1");
|
114
|
112
|
final JPanelFixture triggers = window.panel(
|
115
|
|
- new ClassFinder<JPanel>(ActionTriggersPanel.class, null));
|
|
113
|
+ new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
116
|
114
|
|
117
|
115
|
triggers.comboBox().selectItem("Client closed");
|
118
|
|
- triggers.button(JButtonByTextMatcher.withText("Add")).requireEnabled().
|
|
116
|
+ triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
119
|
117
|
click();
|
120
|
118
|
|
121
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionsPanel.class, null)).
|
122
|
|
- button(JButtonByTextMatcher.withText("Add")).requireDisabled();
|
|
119
|
+ window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
|
120
|
+ button(JButtonMatcher.withText("Add")).requireDisabled();
|
123
|
121
|
}
|
124
|
122
|
|
125
|
123
|
@Test
|
|
@@ -127,55 +125,55 @@ public class ActionEditorDialogTest {
|
127
|
125
|
setupWindow(null);
|
128
|
126
|
|
129
|
127
|
final JPanelFixture triggers = window.panel(
|
130
|
|
- new ClassFinder<JPanel>(ActionTriggersPanel.class, null));
|
|
128
|
+ new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
131
|
129
|
triggers.comboBox().requireDisabled();
|
132
|
130
|
|
133
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
131
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
134
|
132
|
textBox().enterText("test1");
|
135
|
133
|
|
136
|
134
|
final int items = triggers.comboBox().target.getItemCount();
|
137
|
135
|
triggers.comboBox().requireEnabled().selectItem("Channel message received");
|
138
|
|
- triggers.button(JButtonByTextMatcher.withText("Add")).requireEnabled().
|
|
136
|
+ triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
139
|
137
|
click();
|
140
|
138
|
|
141
|
139
|
final JLabelFixture label =
|
142
|
|
- triggers.label(JLabelByTextMatcher.withText("Channel message received"));
|
|
140
|
+ triggers.label(JLabelMatcher.withText("Channel message received"));
|
143
|
141
|
label.requireVisible();
|
144
|
142
|
|
145
|
143
|
assertTrue(items > triggers.comboBox().target.getItemCount());
|
146
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireEnabled();
|
|
144
|
+ window.button(JButtonMatcher.withText("OK")).requireEnabled();
|
147
|
145
|
|
148
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
146
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
149
|
147
|
textBox().deleteText();
|
150
|
|
- triggers.button(new ClassFinder<JButton>(ImageButton.class, null)).
|
|
148
|
+ triggers.button(new ClassFinder<ImageButton>(ImageButton.class, null)).
|
151
|
149
|
requireDisabled();
|
152
|
150
|
triggers.comboBox().requireDisabled();
|
153
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
151
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
154
|
152
|
textBox().enterText("test1");
|
155
|
153
|
|
156
|
|
- triggers.button(new ClassFinder<JButton>(ImageButton.class, null)).
|
|
154
|
+ triggers.button(new ClassFinder<ImageButton>(ImageButton.class, null)).
|
157
|
155
|
requireEnabled().click();
|
158
|
156
|
|
159
|
|
- for (Component comp : triggers.panel(new ClassFinder<JPanel>(ActionTriggersListPanel.class,
|
|
157
|
+ for (Component comp : triggers.panel(new ClassFinder<ActionTriggersListPanel>(ActionTriggersListPanel.class,
|
160
|
158
|
null)).target.getComponents()) {
|
161
|
159
|
assertNotSame(label.target, comp);
|
162
|
160
|
}
|
163
|
161
|
|
164
|
162
|
assertEquals(items, triggers.comboBox().target.getItemCount());
|
165
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireDisabled();
|
|
163
|
+ window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
166
|
164
|
}
|
167
|
165
|
|
168
|
166
|
@Test
|
169
|
167
|
public void testBasicConditionTrees() {
|
170
|
168
|
setupWindow(null);
|
171
|
169
|
|
172
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
170
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
173
|
171
|
textBox().enterText("test1");
|
174
|
172
|
final JPanelFixture triggers = window.panel(
|
175
|
|
- new ClassFinder<JPanel>(ActionTriggersPanel.class, null));
|
|
173
|
+ new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
176
|
174
|
|
177
|
175
|
triggers.comboBox().selectItem("Channel message received");
|
178
|
|
- triggers.button(JButtonByTextMatcher.withText("Add")).requireEnabled().
|
|
176
|
+ triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
179
|
177
|
click();
|
180
|
178
|
|
181
|
179
|
window.radioButton(new JRadioButtonByTextMatcher("All of the conditions are true")).
|
|
@@ -184,78 +182,78 @@ public class ActionEditorDialogTest {
|
184
|
182
|
requireEnabled();
|
185
|
183
|
window.radioButton(new JRadioButtonByTextMatcher("The conditions match a custom rule")).
|
186
|
184
|
requireEnabled();
|
187
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionsTreePanel.class,
|
188
|
|
- null)).textBox(new ClassFinder<JTextComponent>(JTextField.class,
|
|
185
|
+ window.panel(new ClassFinder<ActionConditionsTreePanel>(ActionConditionsTreePanel.class,
|
|
186
|
+ null)).textBox(new ClassFinder<JTextField>(JTextField.class,
|
189
|
187
|
null)).requireDisabled();
|
190
|
188
|
|
191
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireEnabled();
|
|
189
|
+ window.button(JButtonMatcher.withText("OK")).requireEnabled();
|
192
|
190
|
|
193
|
191
|
window.radioButton(new JRadioButtonByTextMatcher("The conditions match a custom rule")).
|
194
|
192
|
click().requireSelected();
|
195
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionsTreePanel.class,
|
196
|
|
- null)).textBox(new ClassFinder<JTextComponent>(JTextField.class,
|
|
193
|
+ window.panel(new ClassFinder<ActionConditionsTreePanel>(ActionConditionsTreePanel.class,
|
|
194
|
+ null)).textBox(new ClassFinder<JTextField>(JTextField.class,
|
197
|
195
|
null)).requireEnabled().enterText("invalid");
|
198
|
196
|
|
199
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireDisabled();
|
|
197
|
+ window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
200
|
198
|
}
|
201
|
199
|
|
202
|
200
|
@Test
|
203
|
201
|
public void testConditionText() {
|
204
|
202
|
setupWindow(null);
|
205
|
203
|
|
206
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
204
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
207
|
205
|
textBox().enterText("test1");
|
208
|
206
|
final JPanelFixture triggers = window.panel(
|
209
|
|
- new ClassFinder<JPanel>(ActionTriggersPanel.class, null));
|
|
207
|
+ new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
210
|
208
|
|
211
|
209
|
triggers.comboBox().selectItem("Channel message received");
|
212
|
|
- triggers.button(JButtonByTextMatcher.withText("Add")).requireEnabled().
|
|
210
|
+ triggers.button(JButtonMatcher.withText("Add")).requireEnabled().
|
213
|
211
|
click();
|
214
|
212
|
|
215
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionsPanel.class, null)).
|
216
|
|
- button(JButtonByTextMatcher.withText("Add")).requireEnabled().
|
|
213
|
+ window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
|
214
|
+ button(JButtonMatcher.withText("Add")).requireEnabled().
|
217
|
215
|
click();
|
218
|
216
|
|
219
|
217
|
Pattern pattern = Pattern.compile(".+<body>(.+)</body>.+", Pattern.DOTALL);
|
220
|
218
|
|
221
|
|
- Matcher matcher = pattern.matcher(window.panel(new ClassFinder<JPanel>(ActionConditionDisplayPanel.class,
|
222
|
|
- null)).textBox(new ClassFinder<JTextComponent>(TextLabel.class,
|
|
219
|
+ Matcher matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
|
220
|
+ null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
223
|
221
|
null)).target.getText());
|
224
|
222
|
matcher.find();
|
225
|
223
|
assertEquals("<p style=\"margin-top: 0\">\n \n </p>", matcher.group(1).trim());
|
226
|
224
|
|
227
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
225
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
228
|
226
|
null)).comboBox("argument").selectItem("message");
|
229
|
227
|
|
230
|
|
- matcher = pattern.matcher(window.panel(new ClassFinder<JPanel>(ActionConditionDisplayPanel.class,
|
231
|
|
- null)).textBox(new ClassFinder<JTextComponent>(TextLabel.class,
|
|
228
|
+ matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
|
229
|
+ null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
232
|
230
|
null)).target.getText());
|
233
|
231
|
matcher.find();
|
234
|
232
|
assertEquals("The message's ...", matcher.group(1).trim());
|
235
|
233
|
|
236
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
234
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
237
|
235
|
null)).comboBox("component").selectItem("content");
|
238
|
236
|
|
239
|
|
- matcher = pattern.matcher(window.panel(new ClassFinder<JPanel>(ActionConditionDisplayPanel.class,
|
240
|
|
- null)).textBox(new ClassFinder<JTextComponent>(TextLabel.class,
|
|
237
|
+ matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
|
238
|
+ null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
241
|
239
|
null)).target.getText());
|
242
|
240
|
matcher.find();
|
243
|
241
|
assertEquals("The message's content ...", matcher.group(1).trim());
|
244
|
242
|
|
245
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
243
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
246
|
244
|
null)).comboBox("comparison").selectItem("contains");
|
247
|
245
|
|
248
|
|
- matcher = pattern.matcher(window.panel(new ClassFinder<JPanel>(ActionConditionDisplayPanel.class,
|
249
|
|
- null)).textBox(new ClassFinder<JTextComponent>(TextLabel.class,
|
|
246
|
+ matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
|
247
|
+ null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
250
|
248
|
null)).target.getText());
|
251
|
249
|
matcher.find();
|
252
|
250
|
assertEquals("The message's content contains ''", matcher.group(1).trim());
|
253
|
251
|
|
254
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
252
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
255
|
253
|
null)).textBox().enterText("foo");
|
256
|
254
|
|
257
|
|
- matcher = pattern.matcher(window.panel(new ClassFinder<JPanel>(ActionConditionDisplayPanel.class,
|
258
|
|
- null)).textBox(new ClassFinder<JTextComponent>(TextLabel.class,
|
|
255
|
+ matcher = pattern.matcher(window.panel(new ClassFinder<ActionConditionDisplayPanel>(ActionConditionDisplayPanel.class,
|
|
256
|
+ null)).textBox(new ClassFinder<TextLabel>(TextLabel.class,
|
259
|
257
|
null)).target.getText());
|
260
|
258
|
matcher.find();
|
261
|
259
|
assertEquals("The message's content contains 'foo'", matcher.group(1).trim());
|
|
@@ -265,60 +263,57 @@ public class ActionEditorDialogTest {
|
265
|
263
|
public void testIllegalCondition() {
|
266
|
264
|
setupWindow(null);
|
267
|
265
|
|
268
|
|
- window.panel(new ClassFinder<JPanel>(ActionNamePanel.class, null)).
|
|
266
|
+ window.panel(new ClassFinder<ActionNamePanel>(ActionNamePanel.class, null)).
|
269
|
267
|
textBox().enterText("test1");
|
270
|
268
|
final JPanelFixture triggers = window.panel(
|
271
|
|
- new ClassFinder<JPanel>(ActionTriggersPanel.class, null));
|
|
269
|
+ new ClassFinder<ActionTriggersPanel>(ActionTriggersPanel.class, null));
|
272
|
270
|
|
273
|
271
|
triggers.comboBox().selectItem("Channel message received");
|
274
|
|
- triggers.button(JButtonByTextMatcher.withText("Add")).requireEnabled().
|
275
|
|
- click();
|
|
272
|
+ triggers.button(JButtonMatcher.withText("Add")).requireEnabled().click();
|
276
|
273
|
|
277
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireEnabled();
|
|
274
|
+ window.button(JButtonMatcher.withText("OK")).requireEnabled();
|
278
|
275
|
|
279
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionsPanel.class, null)).
|
280
|
|
- button(JButtonByTextMatcher.withText("Add")).requireEnabled().
|
281
|
|
- click();
|
|
276
|
+ window.panel(new ClassFinder<ActionConditionsPanel>(ActionConditionsPanel.class, null)).
|
|
277
|
+ button(JButtonMatcher.withText("Add")).requireEnabled().click();
|
282
|
278
|
|
283
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
279
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
284
|
280
|
null)).comboBox("argument").requireEnabled();
|
285
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
281
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
286
|
282
|
null)).comboBox("component").requireDisabled();
|
287
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
283
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
288
|
284
|
null)).comboBox("comparison").requireDisabled();
|
289
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
285
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
290
|
286
|
null)).textBox().requireDisabled();
|
291
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireDisabled();
|
|
287
|
+ window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
292
|
288
|
|
293
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
289
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
294
|
290
|
null)).comboBox("argument").selectItem("message");
|
295
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
291
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
296
|
292
|
null)).comboBox("component").requireEnabled();
|
297
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
293
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
298
|
294
|
null)).comboBox("comparison").requireDisabled();
|
299
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
295
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
300
|
296
|
null)).textBox().requireDisabled();
|
301
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireDisabled();
|
|
297
|
+ window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
302
|
298
|
|
303
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
299
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
304
|
300
|
null)).comboBox("component").selectItem("content");
|
305
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
301
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
306
|
302
|
null)).comboBox("comparison").requireEnabled();
|
307
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
303
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
308
|
304
|
null)).textBox().requireDisabled();
|
309
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireDisabled();
|
|
305
|
+ window.button(JButtonMatcher.withText("OK")).requireDisabled();
|
310
|
306
|
|
311
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
307
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
312
|
308
|
null)).comboBox("comparison").selectItem("contains");
|
313
|
|
- window.panel(new ClassFinder<JPanel>(ActionConditionEditorPanel.class,
|
|
309
|
+ window.panel(new ClassFinder<ActionConditionEditorPanel>(ActionConditionEditorPanel.class,
|
314
|
310
|
null)).textBox().requireEnabled();
|
315
|
|
- window.button(JButtonByTextMatcher.withText("OK")).requireEnabled();
|
|
311
|
+ window.button(JButtonMatcher.withText("OK")).requireEnabled();
|
316
|
312
|
}
|
317
|
313
|
|
318
|
314
|
protected void setupWindow(final Action action) {
|
319
|
315
|
window = new DialogFixture(ActionEditorDialog.getActionEditorDialog(null,
|
320
|
316
|
"amd-ui-test1", action));
|
321
|
|
- window.robot.settings().eventMode(EventMode.AWT);
|
322
|
317
|
window.show();
|
323
|
318
|
}
|
324
|
319
|
|