File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
src/test/java/com/openfin/desktop Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments