use of io.confluent.ksql.rest.client.exception.KsqlRestClientException in project ksql by confluentinc.
the class RemoteServerSpecificCommandTest method shouldThrowIfRestClientThrowsOnSet.
@Test(expected = KsqlRestClientException.class)
public void shouldThrowIfRestClientThrowsOnSet() {
// Given:
doThrow(new KsqlRestClientException("Boom")).when(restClient).setServerAddress("localhost:8088");
// When:
command.execute(ImmutableList.of("localhost:8088"), terminal);
}
Aggregations