@@ -0,0 +1,2003 @@
+package org.hisp.dhis.android.core.program;%0A%0Aimport android.support.test.runner.AndroidJUnit4;%0A%0Aimport org.hisp.dhis.android.core.D2;%0Aimport org.hisp.dhis.android.core.common.D2Factory;%0Aimport org.hisp.dhis.android.core.common.GenericCallData;%0Aimport org.hisp.dhis.android.core.data.database.AbsStoreTestCase;%0Aimport org.hisp.dhis.android.core.resource.ResourceHandler;%0Aimport org.hisp.dhis.android.core.resource.ResourceStoreImpl;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport java.io.IOException;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0A%0A@RunWith(AndroidJUnit4.class)%0Apublic class ProgramAccessEndpointCallRealIntegrationShould extends AbsStoreTestCase %7B%0A    /**%0A     * A quick integration test that is probably flaky, but will help with finding bugs related to the%0A     * metadataSyncCall. It works against the dev server.%0A     */%0A    private D2 d2;%0A    private ProgramAccessEndpointCall programAccessCall;%0A%0A    @Before%0A    @Override%0A    public void setUp() throws IOException %7B%0A        super.setUp();%0A        d2 = D2Factory.create(%22https://play.dhis2.org/dev/api/%22, databaseAdapter());%0A        programAccessCall = createCall();%0A    %7D%0A%0A    private ProgramAccessEndpointCall createCall() %7B%0A        ResourceHandler resourceHandler =%0A                new ResourceHandler(new ResourceStoreImpl(databaseAdapter()));%0A        GenericCallData data = GenericCallData.create(databaseAdapter(), resourceHandler, d2.retrofit());%0A%0A        return ProgramAccessEndpointCall.FACTORY.create(data);%0A    %7D%0A%0A    @Test%0A    public void download_programs() throws Exception %7B%0A        if (!d2.isUserLoggedIn().call()) %7B%0A            retrofit2.Response loginResponse = d2.logIn(%22android%22, %22Android123%22).call();%0A            assertThat(loginResponse.isSuccessful()).isTrue();%0A        %7D%0A%0A        retrofit2.Response programResponse = programAccessCall.call();%0A        assertThat(programResponse.isSuccessful()).isTrue();%0A    %7D%0A%0A    @Test%0A    public void stub() %7B%0A    %7D%0A%7D%0A

add ProgramAccessEndpointCallRealIntegrationShould