@Test public void generateConvForStoresConfigUrl() { String convForStoresUrl = BVRemoteConfig.getFeatureConfigUrl("conversations-stores", "geofenceConfig.json"); String expectedUrl = "baseurl/incubator-mobile-apps/sdk/v1/android/" + bvUserProvidedData.getBvConfig().getClientId() + "/conversations-stores/geofenceConfig.json"; Assert.assertEquals(expectedUrl, convForStoresUrl); }
static String getFeatureConfigUrl(String remoteFeatureName, String remoteFileName) { BVSDK bvsdk = BVSDK.getInstance(); String amazonS3Url = bvsdk.getBvWorkerData().getRootApiUrls().getNotificationConfigUrl(); String clientId = bvsdk.getBvUserProvidedData().getBvConfig().getClientId(); return amazonS3Url + String.format(RELATIVE_CONFIG_TEMPLATE_URL, clientId, remoteFeatureName, remoteFileName); }
BVRemoteConfig { static String getFeatureConfigUrl(String remoteFeatureName, String remoteFileName) { BVSDK bvsdk = BVSDK.getInstance(); String amazonS3Url = bvsdk.getBvWorkerData().getRootApiUrls().getNotificationConfigUrl(); String clientId = bvsdk.getBvUserProvidedData().getBvConfig().getClientId(); return amazonS3Url + String.format(RELATIVE_CONFIG_TEMPLATE_URL, clientId, remoteFeatureName, remoteFileName); } }
BVRemoteConfig { static String getFeatureConfigUrl(String remoteFeatureName, String remoteFileName) { BVSDK bvsdk = BVSDK.getInstance(); String amazonS3Url = bvsdk.getBvWorkerData().getRootApiUrls().getNotificationConfigUrl(); String clientId = bvsdk.getBvUserProvidedData().getBvConfig().getClientId(); return amazonS3Url + String.format(RELATIVE_CONFIG_TEMPLATE_URL, clientId, remoteFeatureName, remoteFileName); }  }
BVRemoteConfig { static String getFeatureConfigUrl(String remoteFeatureName, String remoteFileName) { BVSDK bvsdk = BVSDK.getInstance(); String amazonS3Url = bvsdk.getBvWorkerData().getRootApiUrls().getNotificationConfigUrl(); String clientId = bvsdk.getBvUserProvidedData().getBvConfig().getClientId(); return amazonS3Url + String.format(RELATIVE_CONFIG_TEMPLATE_URL, clientId, remoteFeatureName, remoteFileName); }   }
BVRemoteConfig { static String getFeatureConfigUrl(String remoteFeatureName, String remoteFileName) { BVSDK bvsdk = BVSDK.getInstance(); String amazonS3Url = bvsdk.getBvWorkerData().getRootApiUrls().getNotificationConfigUrl(); String clientId = bvsdk.getBvUserProvidedData().getBvConfig().getClientId(); return amazonS3Url + String.format(RELATIVE_CONFIG_TEMPLATE_URL, clientId, remoteFeatureName, remoteFileName); }    }