FitpayConfig { public static void configure(@NonNull Context context, @NonNull String clientId) { configure(context, new FitpayConfigModel(clientId)); }  static void configure(@NonNull Context context, @NonNull String clientId); static void configure(@NonNull Context context, @NonNull InputStream stream); static Context appContext; static String clientId; @NonNull
    static String webURL; @NonNull
    static String redirectURL; @NonNull
    static String apiURL; @NonNull
    static String authURL; static boolean supportApp2App; }
@Test public void test02_checkClientIdOverride() { Assert.assertEquals("clientId mismatch", FitpayConfig.clientId, TestConstants.getClientId()); FitpayConfig.configure(mContext, "newClientIdString"); Assert.assertEquals("clientId mismatch", FitpayConfig.clientId, "newClientIdString"); FitpayConfig.configure(mContext, TestConstants.getClientId()); }
@Test public void test03_readFromFile() { String fileName = "fitpay_config.json"; InputStream inputStream = getClass().getClassLoader().getResourceAsStream(fileName); FitpayConfig.configure(mContext, inputStream); Assert.assertEquals("https: Assert.assertEquals("https: Assert.assertEquals("https: Assert.assertEquals("https: Assert.assertEquals("https: Assert.assertTrue(FitpayConfig.supportApp2App); Assert.assertNotNull("demoCardGroup is missing", FitpayConfig.Web.demoCardGroup); Assert.assertEquals("demoCardGroup mismatch", FitpayConfig.Web.demoCardGroup, "visa_only"); }