Skip to content

Commit 7a1f454

Browse files
author
Wenjun Che
committed
ADAP-44: create junit tests
1 parent 03715fb commit 7a1f454

4 files changed

Lines changed: 520 additions & 3 deletions

File tree

src/main/java/com/openfin/desktop/demo/OpenFinDockingDemo.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import javax.swing.*;
1515
import java.awt.*;
1616
import java.awt.event.*;
17+
import java.lang.System;
1718
import java.util.*;
1819
import java.util.List;
1920

@@ -207,7 +208,7 @@ public void run() {
207208
});
208209
try {
209210
Thread.sleep(1000);
210-
java.lang.System.exit(0);
211+
System.exit(0);
211212
} catch (InterruptedException e) {
212213
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
213214
}

src/test/java/com/openfin/desktop/AllTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
*/
1111

1212
@RunWith(Suite.class)
13-
@Suite.SuiteClasses({ ApplicationTest.class, OpenFinRuntimeTest.class, WindowTest.class})
13+
@Suite.SuiteClasses({ ApplicationTest.class, OpenFinRuntimeTest.class, WindowTest.class, SystemTest.class})
1414
public class AllTests {
1515
}

src/test/java/com/openfin/desktop/OpenFinRuntimeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
*
21-
* JUnit tests for com.openfin.desktop.System class
21+
* JUnit tests for com.openfin.desktop.OpenFinRuntime class
2222
*
2323
* Created by wche on 1/23/16.
2424
*/

0 commit comments

Comments
 (0)