use of com.google.container.v1beta1.ClusterUpdate in project java-container by googleapis.
the class ClusterManagerClientTest method updateClusterExceptionTest.
@Test
public void updateClusterExceptionTest() throws Exception {
StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
mockClusterManager.addException(exception);
try {
String name = "name3373707";
ClusterUpdate update = ClusterUpdate.newBuilder().build();
client.updateCluster(name, update);
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
// Expected exception.
}
}
Aggregations