use of org.hisp.dhis.dxf2.events.trackedentity.store.query.EventQuery.COLUMNS.STATUS in project dhis2-core by dhis2.
the class TrackedEntityInstanceControllerTest method shouldCallSyncStrategy.
@Test
void shouldCallSyncStrategy() throws Exception {
when(trackedEntityInstanceSyncStrategy.mergeOrDeleteTrackedEntityInstances(any())).thenReturn(new ImportSummaries());
mockMvc.perform(post(ENDPOINT).contentType(MediaType.APPLICATION_JSON).content("{}")).andExpect(status().isOk()).andReturn();
verify(trackedEntityInstanceSyncStrategy, times(1)).mergeOrDeleteTrackedEntityInstances(any());
verify(trackedEntityInstanceAsyncStrategy, times(0)).mergeOrDeleteTrackedEntityInstances(any());
}
Aggregations