use of org.molgenis.api.metadata.v3.model.DeleteAttributesRequest in project molgenis by molgenis.
the class MetadataApiControllerTest method testDeleteAttributes.
@Test
void testDeleteAttributes() {
String entityTypeId = "MyEntityTypeId";
Query query = Query.create("name", IN, asList("name1", "name2"));
DeleteAttributesRequest deleteAttributesRequest = new DeleteAttributesRequest();
deleteAttributesRequest.setQ(query);
MetadataUpsertJobExecution jobExecution = mockUpsertJobExecution();
when(metadataApiService.deleteAttributesAsync(entityTypeId, query)).thenReturn(jobExecution);
metadataApiController.deleteAttributes(entityTypeId, deleteAttributesRequest);
verify(metadataApiService).deleteAttributesAsync(entityTypeId, query);
}
Aggregations