use of com.google.devtools.clouderrorreporting.v1beta1.GroupName in project google-cloud-java by GoogleCloudPlatform.
the class ErrorGroupServiceClientTest method getGroupExceptionTest.
@Test
@SuppressWarnings("all")
public void getGroupExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
mockErrorGroupService.addException(exception);
try {
GroupName groupName = GroupName.create("[PROJECT]", "[GROUP]");
client.getGroup(groupName);
Assert.fail("No exception raised");
} catch (ApiException e) {
Assert.assertEquals(Status.INVALID_ARGUMENT.getCode(), e.getStatusCode());
}
}
Aggregations