SearchHostProvider { public String getSearchHost() { String scheme = isToolboxEnableHttpScheme ? "http" : aptoideWebServicesScheme; return "http".equals(scheme) ? scheme + ": : scheme + ": } SearchHostProvider(boolean isToolboxEnableHttpScheme, String aptoideWebServicesScheme,
      String aptoideWebServicesSearchHost, String aptoideWebServicesSearchSslHost); String getSearchHost();  }
@Test public void getSearchHost_toolBoxDisabled_aptoideHttpScheme() { SearchHostProvider searchHostProvider = new SearchHostProvider(false, "http", "buzz.aptoide.com:10001", "buzz.aptoide.com:10002"); String searchHost = searchHostProvider.getSearchHost(); assertEquals(searchHost, "http: }
@Test public void getSearchHost_toolBoxDisabled_aptoideHttpsScheme() { SearchHostProvider searchHostProvider = new SearchHostProvider(false, "https", "buzz.aptoide.com:10001", "buzz.aptoide.com:10002"); String searchHost = searchHostProvider.getSearchHost(); assertEquals(searchHost, "https: }
@Test public void getSearchHost_toolBoxEnabled_aptoideHttpScheme() { SearchHostProvider searchHostProvider = new SearchHostProvider(true, "http", "buzz.aptoide.com:10001", "buzz.aptoide.com:10002"); String searchHost = searchHostProvider.getSearchHost(); assertEquals(searchHost, "http: }
@Test public void getSearchHost_toolBoxEnabled_aptoideHttpsScheme() { SearchHostProvider searchHostProvider = new SearchHostProvider(true, "https", "buzz.aptoide.com:10001", "buzz.aptoide.com:10002"); String searchHost = searchHostProvider.getSearchHost(); assertEquals(searchHost, "http: }