Search in sources :

Example 6 with TrackedEntityDataValueStoreImpl

use of org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStoreImpl in project dhis2-android-sdk by dhis2.

the class EventPostCallRealIntegrationShould method setUp.

@Override
@Before
public void setUp() throws IOException {
    super.setUp();
    d2 = D2Factory.create(RealServerMother.url, databaseAdapter());
    eventStore = new EventStoreImpl(databaseAdapter());
    trackedEntityDataValueStore = new TrackedEntityDataValueStoreImpl(databaseAdapter());
    orgUnitUid = "ImspTQPwCqd";
    programUid = "kla3mAPgvCH";
    programStageUid = "aNLq9ZYoy9W";
    dataElementUid = "b6dOUjAarHD";
    attributeCategoryOption = "C6nZpLKjEJr";
    attributeOptionCombo = "nvLjum6Xbv5";
    categoryComboUID = "nM3u9s5a52V";
    codeGenerator = new CodeGeneratorImpl();
    eventUid = codeGenerator.generate();
}
Also used : CodeGeneratorImpl(org.hisp.dhis.android.core.utils.CodeGeneratorImpl) TrackedEntityDataValueStoreImpl(org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStoreImpl) Before(org.junit.Before)

Aggregations

TrackedEntityDataValueStoreImpl (org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStoreImpl)6 List (java.util.List)2 TrackedEntityDataValueStore (org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueStore)2 ArrayList (java.util.ArrayList)1 Event (org.hisp.dhis.android.core.event.Event)1 EventStore (org.hisp.dhis.android.core.event.EventStore)1 EventStoreImpl (org.hisp.dhis.android.core.event.EventStoreImpl)1 TrackedEntityDataValueHandler (org.hisp.dhis.android.core.trackedentity.TrackedEntityDataValueHandler)1 CodeGeneratorImpl (org.hisp.dhis.android.core.utils.CodeGeneratorImpl)1 Before (org.junit.Before)1 Test (org.junit.Test)1