use of com.google.logging.v2.GetExclusionRequest in project java-logging by googleapis.
the class LoggingImplTest method testGetExclusion_Null.
@Test
public void testGetExclusion_Null() {
ApiFuture<LogExclusion> response = ApiFutures.immediateFuture(null);
GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(EXCLUSION_NAME_PB).build();
EasyMock.expect(loggingRpcMock.get(request)).andReturn(response);
EasyMock.replay(rpcFactoryMock, loggingRpcMock);
logging = options.getService();
Exclusion exclusion = logging.getExclusion(EXCLUSION_NAME);
assertNull(exclusion);
}
Aggregations