Skip to content

Commit 2ad5cf9

Browse files
committed
ADAP-207: cleanup
1 parent 1f21d94 commit 2ad5cf9

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void teardown() throws Exception {
4848
public void getDeviceId() throws Exception {
4949
logger.debug("start getDeviceId");
5050
CountDownLatch latch = new CountDownLatch(1);
51-
runtime.getDeviceId(new AckListener() {
51+
runtime.getMachineId(new AckListener() {
5252
@Override
5353
public void onSuccess(Ack ack) {
5454
if (ack.isSuccessful()) {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package com.openfin.desktop;
22

3-
import com.openfin.desktop.snapshot.SnapshotSource;
43
import com.openfin.desktop.snapshot.SnapshotSourceProvider;
5-
import com.sun.xml.internal.bind.v2.runtime.unmarshaller.LocatorEx;
6-
import org.json.JSONArray;
74
import org.json.JSONObject;
85
import org.junit.AfterClass;
96
import org.junit.BeforeClass;
@@ -16,7 +13,6 @@
1613
import java.util.concurrent.TimeUnit;
1714

1815
import static org.junit.Assert.assertEquals;
19-
import static org.junit.Assert.fail;
2016

2117
public class SnapshotTest implements SnapshotSourceProvider {
2218

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void teardown() throws Exception {
5050
@Test
5151
public void getDeviceId() throws Exception {
5252
CountDownLatch latch = new CountDownLatch(1);
53-
runtime.getDeviceId(new AckListener() {
53+
runtime.getMachineId(new AckListener() {
5454
@Override
5555
public void onSuccess(Ack ack) {
5656
if (ack.isSuccessful()) {

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,7 @@ public void eventReceived(ActionEvent actionEvent) {
298298
};
299299
addEventListener(application, "closed", listener);
300300

301-
application.close(new AckListener() {
302-
@Override
303-
public void onSuccess(Ack ack) {
304-
}
305-
@Override
306-
public void onError(Ack ack) {
307-
logger.error(ack.getReason());
308-
}
309-
});
301+
application.close();
310302
stoppedLatch.await(5, TimeUnit.SECONDS);
311303
assertEquals("Close application timeout " + application.getUuid(), stoppedLatch.getCount(), 0);
312304
}

0 commit comments

Comments
 (0)