@@ -30,7 +30,7 @@ public class SystemTest {
3030
3131 private static final String DESKTOP_UUID = SystemTest .class .getName ();
3232 private static DesktopConnection desktopConnection ;
33- private static System runtime ;
33+ private static OpenFinRuntime runtime ;
3434
3535 @ BeforeClass
3636 public static void setup () throws Exception {
@@ -286,7 +286,6 @@ public void onSuccess(Ack ack) {
286286 JSONObject position = (JSONObject ) ack .getData ();
287287 if (position .has ("left" ) && position .has ("top" )) {
288288 latch .countDown ();
289-
290289 }
291290 }
292291 }
@@ -493,7 +492,6 @@ public void onSuccess(Ack ack) {
493492 latch .countDown ();
494493 }
495494 }
496-
497495 @ Override
498496 public void onError (Ack ack ) {
499497 }
@@ -508,9 +506,38 @@ public void restartRuntime() throws Exception {
508506 String version1 = getRuntimeVersion ();
509507 TestUtils .teardownDesktopConnection (desktopConnection );
510508 desktopConnection = TestUtils .setupConnection (DESKTOP_UUID );
511- runtime = new System (desktopConnection );
509+ runtime = new OpenFinRuntime (desktopConnection );
512510 String version2 = getRuntimeVersion ();
513511 assertEquals (version1 , version2 );
514512 }
515513
514+ @ Test
515+ public void customRdmAssetUrls () throws Exception {
516+ TestUtils .teardownDesktopConnection (desktopConnection );
517+ String rdmUrl = "https://rdm.openfin.co/services" ;
518+ String assetsUrl = "https://cdn.openfin.co/release" ;
519+ desktopConnection = TestUtils .setupConnection (DESKTOP_UUID , rdmUrl , assetsUrl );
520+ runtime = new OpenFinRuntime (desktopConnection );
521+ CountDownLatch latch = new CountDownLatch (1 );
522+ runtime .getConfig (null , new AckListener () {
523+ @ Override
524+ public void onSuccess (Ack ack ) {
525+ if (ack .isSuccessful ()) {
526+ JSONObject data = (JSONObject ) ack .getData ();
527+ if (rdmUrl .equals (data .getString ("rdmUrl" )) && assetsUrl .equals (data .getString ("assetsUrl" ))) {
528+ latch .countDown ();
529+ }
530+ }
531+ }
532+ @ Override
533+ public void onError (Ack ack ) {
534+ logger .error (ack .getReason ());
535+ }
536+ });
537+ latch .await (5 , TimeUnit .SECONDS );
538+ assertEquals ("getConfig timeout" , latch .getCount (), 0 );
539+
540+ }
541+
542+
516543}
0 commit comments