use of org.apache.kafka.connect.errors.NotFoundException in project kafka by apache.
the class ConnectorsResourceTest method testGetConnectorConfigConnectorNotFound.
@Test(expected = NotFoundException.class)
public void testGetConnectorConfigConnectorNotFound() throws Throwable {
final Capture<Callback<Map<String, String>>> cb = Capture.newInstance();
herder.connectorConfig(EasyMock.eq(CONNECTOR_NAME), EasyMock.capture(cb));
expectAndCallbackException(cb, new NotFoundException("not found"));
PowerMock.replayAll();
connectorsResource.getConnectorConfig(CONNECTOR_NAME, FORWARD);
PowerMock.verifyAll();
}
Aggregations