Search in sources :

Example 1 with PotentialDuplicateQuery

use of org.hisp.dhis.deduplication.PotentialDuplicateQuery in project dhis2-core by dhis2.

the class DeduplicationControllerTest method getAllPotentialDuplicate.

@Test
void getAllPotentialDuplicate() throws BadRequestException {
    PotentialDuplicateQuery potentialDuplicateQuery = new PotentialDuplicateQuery();
    deduplicationController.getAllByQuery(potentialDuplicateQuery, mock(HttpServletResponse.class));
    verify(deduplicationService).getAllPotentialDuplicatesBy(potentialDuplicateQuery);
}
Also used : HttpServletResponse(javax.servlet.http.HttpServletResponse) PotentialDuplicateQuery(org.hisp.dhis.deduplication.PotentialDuplicateQuery) Test(org.junit.jupiter.api.Test)

Aggregations

HttpServletResponse (javax.servlet.http.HttpServletResponse)1 PotentialDuplicateQuery (org.hisp.dhis.deduplication.PotentialDuplicateQuery)1 Test (org.junit.jupiter.api.Test)1