use of com.google.logging.v2.DeleteLogMetricRequest in project google-cloud-java by GoogleCloudPlatform.
the class LoggingImplTest method testDeleteMetricAsync.
@Test
public void testDeleteMetricAsync() throws ExecutionException, InterruptedException {
DeleteLogMetricRequest request = DeleteLogMetricRequest.newBuilder().setMetricName(METRIC_NAME_PB).build();
ApiFuture<Empty> response = ApiFutures.immediateFuture(Empty.getDefaultInstance());
EasyMock.expect(loggingRpcMock.delete(request)).andReturn(response);
EasyMock.replay(rpcFactoryMock, loggingRpcMock);
logging = options.getService();
assertTrue(logging.deleteMetricAsync(METRIC_NAME).get());
}
Aggregations