use of org.onap.aaiclient.client.graphinventory.Format in project so by onap.
the class AAIQueryClientTest method testQuery.
@Test
public void testQuery() {
List<AAIResourceUri> uris = Arrays.asList(AAIUriFactory.createResourceUri(AAIObjectType.CUSTOM_QUERY));
Format format = Format.SIMPLE;
CustomQuery query = new CustomQuery(uris);
doReturn(restClient).when(client).createClient(isA(AAIResourceUri.class));
aaiQueryClient.query(format, query);
verify(client, times(1)).createClient(AAIUriFactory.createResourceUri(AAIObjectType.CUSTOM_QUERY).format(format));
verify(restClient, times(1)).put(query, String.class);
}
Aggregations