use of org.hisp.dhis.android.core.data.server.Dhis2MockServer in project dhis2-android-sdk by dhis2.
the class UserAuthenticateCallMockIntegrationShould method setUp.
@Before
@Override
public void setUp() throws IOException {
super.setUp();
dhis2MockServer = new Dhis2MockServer(new AssetsFileReader());
D2 d2 = D2Factory.create(dhis2MockServer.getBaseEndpoint(), databaseAdapter());
dhis2MockServer.enqueueMockResponse("user.json");
genericCallData = GenericCallData.create(databaseAdapter(), d2.retrofit());
authenticateUserCall = UserAuthenticateCall.create(genericCallData, "test_user", "test_password");
}
use of org.hisp.dhis.android.core.data.server.Dhis2MockServer in project dhis2-android-sdk by dhis2.
the class TrackedEntityInstanceCallMockIntegrationShould method setUp.
@Override
@Before
public void setUp() throws IOException {
super.setUp();
dhis2MockServer = new Dhis2MockServer(new AssetsFileReader());
d2 = D2Factory.create(dhis2MockServer.getBaseEndpoint(), databaseAdapter());
}
Aggregations