|
@@ -60,6 +60,10 @@ public class ActionsManagerDialogTest {
|
60
|
60
|
if (window != null) {
|
61
|
61
|
window.cleanUp();
|
62
|
62
|
}
|
|
63
|
+
|
|
64
|
+ if (ActionManager.getGroups().containsKey("amd-ui-test1")) {
|
|
65
|
+ ActionManager.removeGroup("amd-ui-test1");
|
|
66
|
+ }
|
63
|
67
|
}
|
64
|
68
|
|
65
|
69
|
@Test
|
|
@@ -84,12 +88,8 @@ public class ActionsManagerDialogTest {
|
84
|
88
|
assertEquals("New action group", newwin.target.getTitle());
|
85
|
89
|
newwin.button(new ButtonTextFinder("OK")).requireDisabled();
|
86
|
90
|
|
87
|
|
- newwin.textBox(new GenericTypeMatcher<JTextComponent>() {
|
88
|
|
- @Override
|
89
|
|
- protected boolean isMatching(JTextComponent arg0) {
|
90
|
|
- return arg0.getClass().equals(javax.swing.JTextField.class);
|
91
|
|
- }
|
92
|
|
- }).enterText("amd-ui-test1");
|
|
91
|
+ newwin.textBox(new ClassFinder<JTextComponent>(javax.swing.JTextField.class, null))
|
|
92
|
+ .enterText("amd-ui-test1");
|
93
|
93
|
newwin.button(new ButtonTextFinder("OK")).requireEnabled().click();
|
94
|
94
|
|
95
|
95
|
// Ensure it's added
|