We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f8435 commit 68d5c68Copy full SHA for 68d5c68
1 file changed
src/ui/helper/ClassSearchFrameTest.java
@@ -12,7 +12,7 @@ public class ClassSearchFrameTest {
12
13
@Test
14
public void test() throws InterruptedException {
15
- SwingUtilities.invokeLater(new Runnable() {
+ Runnable t = (new Runnable() {
16
17
@Override
18
public void run() {
@@ -29,10 +29,20 @@ public void didSelectClass(String classname) {
29
classSearchFrame.setVisible(true);
30
classSearchFrame.setSize(new Dimension(300, 200));
31
32
+ try {
33
+ Thread.sleep(10000);
34
+ classSearchFrame.setVisible(false);
35
+ classSearchFrame.dispose();
36
+ } catch (InterruptedException e) {
37
+ e.printStackTrace();
38
+ }
39
40
}
41
});
- Thread.sleep(Long.MAX_VALUE);
42
+ SwingUtilities.invokeLater(t);
43
+ Thread.sleep(100000);
44
+
45
46
47
48
0 commit comments