use of org.molgenis.api.metadata.v3.model.DeleteEntityTypesRequest in project molgenis by molgenis.
the class MetadataApiControllerTest method testDeleteEntityTypes.
@Test
void testDeleteEntityTypes() {
Query query = Query.create("id", IN, asList("MyEntityTypeId0", "MyEntityTypeId1"));
DeleteEntityTypesRequest deleteEntityTypesRequest = new DeleteEntityTypesRequest();
deleteEntityTypesRequest.setQ(query);
MetadataDeleteJobExecution jobExecution = mockDeleteJobExecution();
when(metadataApiService.deleteEntityTypesAsync(query)).thenReturn(jobExecution);
metadataApiController.deleteEntityTypes(deleteEntityTypesRequest);
verify(metadataApiService).deleteEntityTypesAsync(query);
}
Aggregations