use of com.kickstarter.libs.MockCurrentConfig in project android-oss by kickstarter.
the class KSCurrencyTest method createKSCurrency.
private static KSCurrency createKSCurrency(final String countryCode) {
final Config config = ConfigFactory.config().toBuilder().countryCode(countryCode).build();
final CurrentConfigType currentConfig = new MockCurrentConfig();
currentConfig.config(config);
return new KSCurrency(currentConfig);
}
use of com.kickstarter.libs.MockCurrentConfig in project android-oss by kickstarter.
the class KSRobolectricTestCase method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
final MockTrackingClient testTrackingClient = new MockTrackingClient();
koalaTest = new TestSubscriber<>();
testTrackingClient.eventNames.subscribe(koalaTest);
environment = application().component().environment().toBuilder().apiClient(new MockApiClient()).currentConfig(new MockCurrentConfig()).webClient(new MockWebClient()).koala(new Koala(testTrackingClient)).build();
}
Aggregations