File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
src/test/java/com/openfin/desktop Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 99
1010import org .junit .AfterClass ;
1111import org .junit .BeforeClass ;
12+ import org .junit .Ignore ;
1213import org .junit .Test ;
1314import org .slf4j .Logger ;
1415import org .slf4j .LoggerFactory ;
@@ -337,4 +338,32 @@ public void eventReceived(ActionEvent actionEvent) {
337338 assertEquals (cnt /2 , latch .getCount ());
338339 assertEquals (cnt /2 , invokeCnt .get ());
339340 }
341+
342+ @ Ignore
343+ @ Test
344+ public void createFromManifest () throws Exception {
345+
346+ 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+
354+ @ Override
355+ public void onSuccess (Ack ack ) {
356+ latch .countDown ();
357+ }
358+
359+ @ Override
360+ public void onError (Ack ack ) {
361+ logger .info ("error running app: {}" , ack .getReason ());
362+ }});;
363+ }}, null , desktopConnection );
364+
365+ latch .await (50 , TimeUnit .SECONDS );
366+
367+ assertEquals (0 , latch .getCount ());
368+ }
340369}
You can’t perform that action at this time.
0 commit comments