Skip to content

Commit b2e6405

Browse files
committed
ADAP-153: added launchFromRemoteConfig test
1 parent 6ccd3bb commit b2e6405

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ public void launchFromConfig() throws Exception {
6363
TestUtils.teardownDesktopConnection(conn);
6464
}
6565

66+
@Test
67+
public void launchFromRemoteConfig() throws Exception {
68+
RuntimeConfiguration configuration = new RuntimeConfiguration();
69+
configuration.setManifestLocation(TestUtils.hello_app_manifest_url);
70+
DesktopConnection conn = TestUtils.setupConnection(DESKTOP_UUID, configuration);
71+
assertTrue(isWindowCreated("OpenFinHelloWorld", conn));
72+
TestUtils.teardownDesktopConnection(conn);
73+
}
74+
6675
private boolean isWindowCreated(String uuid, DesktopConnection conn) throws Exception {
6776
CountDownLatch latch = new CountDownLatch(1);
6877
AtomicReference<Boolean> atomicReference = new AtomicReference<>();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public class TestUtils {
2727
private static String runtimeVersion;
2828
private static CountDownLatch disconnectedLatch;
2929
public static final String openfin_app_url = "https://cdn.openfin.co/examples/junit/SimpleOpenFinApp.html"; // source is in release/SimpleOpenFinApp.html
30-
public static final String icon_url = "http://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/img/openfin.ico";
30+
public static final String icon_url = "https://cdn.openfin.co/demos/hello/img/openfin.ico";
31+
public static final String hello_app_manifest_url = "https://cdn.openfin.co/demos/hello/app.json";
3132

3233
static {
3334
runtimeVersion = java.lang.System.getProperty("com.openfin.test.runtime.version");

0 commit comments

Comments
 (0)