Skip to content

Commit f4be5a8

Browse files
committed
ADAP-102 junit test case for createFromManifest
1 parent 5c4fc62 commit f4be5a8

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

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

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -339,31 +339,32 @@ public void eventReceived(ActionEvent actionEvent) {
339339
assertEquals(cnt/2, invokeCnt.get());
340340
}
341341

342-
@Ignore
342+
343343
@Test
344344
public void createFromManifest() throws Exception {
345-
346345
final CountDownLatch latch = new CountDownLatch(1);
347-
348-
Application.createFromManifest("http://localhost:8080/app_stable.json", new AsyncCallback<Application>() {
349-
350-
@Override
351-
public void onSuccess(Application app) {
352-
app.run(new AckListener() {
353-
346+
Application.createFromManifest(
347+
"https://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/app.json",
348+
new AsyncCallback<Application>() {
354349
@Override
355-
public void onSuccess(Ack ack) {
350+
public void onSuccess(Application app) {
356351
latch.countDown();
357352
}
353+
}, new AckListener() {
354+
@Override
355+
public void onSuccess(Ack ack) {
356+
}
358357

359358
@Override
360359
public void onError(Ack ack) {
361-
logger.info("error running app: {}", ack.getReason());
362-
}});;
363-
}}, null, desktopConnection);
360+
logger.info("error creating app: {}", ack.getReason());
361+
}
362+
}, desktopConnection);
364363

365364
latch.await(50, TimeUnit.SECONDS);
366-
365+
367366
assertEquals(0, latch.getCount());
367+
368+
368369
}
369370
}

0 commit comments

Comments
 (0)