Search in sources :

Example 1 with DataElement

use of org.hisp.dhis.android.core.dataelement.DataElement in project dhis2-android-sdk by dhis2.

the class MetadataCallShould method return_last_response_items_returned.

@Test
public void return_last_response_items_returned() throws Exception {
    Response response = metadataCall.call();
    Payload<DataElement> payload = (Payload<DataElement>) response.body();
    assertTrue(!payload.items().isEmpty());
    assertThat(payload.items().get(0)).isEqualTo(dataElement);
}
Also used : Response(retrofit2.Response) DataElement(org.hisp.dhis.android.core.dataelement.DataElement) Test(org.junit.Test)

Aggregations

DataElement (org.hisp.dhis.android.core.dataelement.DataElement)1 Test (org.junit.Test)1 Response (retrofit2.Response)1