Search in sources :

Example 1 with MockWebClient

use of com.kickstarter.services.MockWebClient 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();
}
Also used : MockCurrentConfig(com.kickstarter.libs.MockCurrentConfig) MockWebClient(com.kickstarter.services.MockWebClient) MockApiClient(com.kickstarter.services.MockApiClient) Koala(com.kickstarter.libs.Koala) MockTrackingClient(com.kickstarter.libs.MockTrackingClient) Before(org.junit.Before)

Aggregations

Koala (com.kickstarter.libs.Koala)1 MockCurrentConfig (com.kickstarter.libs.MockCurrentConfig)1 MockTrackingClient (com.kickstarter.libs.MockTrackingClient)1 MockApiClient (com.kickstarter.services.MockApiClient)1 MockWebClient (com.kickstarter.services.MockWebClient)1 Before (org.junit.Before)1