@Override public void run() { streams.close(); } }));
@Override public void stop() { if (streams != null) { streams.close(); } }
@Override public void run() { streams.close(); } }));
@Override public void stop() { if (streams != null) { streams.close(); } }
@Override public void stop() { if (streams != null) { streams.close(); } }
@Override public void stop() { if (streams != null) { streams.close(); } }
@Override public void run() { streams.close(); } }));
mockKafkaStreams.cleanUp(); expectLastCall(); mockKafkaStreams.close(); expectLastCall();
@Override public void stop() { if (streams != null) { streams.close(); } if (producer != null) { producer.close(); } if (jettyServer != null) { try { jettyServer.stop(); } catch (Exception e) { e.printStackTrace(); } } }
@Override public synchronized void stop() { if (this.running) { try { if (this.kafkaStreams != null) { this.kafkaStreams.close(this.closeTimeout, TimeUnit.SECONDS); if (this.cleanupConfig.cleanupOnStop()) { this.kafkaStreams.cleanUp(); } this.kafkaStreams = null; } } catch (Exception e) { logger.error("Failed to stop streams", e); } finally { this.running = false; } } }
@After public void closeStreams() { streams.close(); }
@After public void stopStreams() { streams.close(); }
@After public void stopStreams() { streams.close(); }
@After public void stopStreams() { streams.close(); }
@After public void shutdown() throws Exception { try { restProxy.stop(); } catch (final Exception e) { log.error(String.format("Error while stopping restproxy: %s",e.getMessage())); } streams.close(); }
try { restService.stop(); streams.close(); } catch (Exception e) {
@After public void shutdown() throws Exception { if (kafkaStreams != null) { kafkaStreams.close(); } if (proxy != null) { proxy.stop(); } }
List<String> actualValues = IntegrationTestUtils.waitUntilMinValuesRecordsReceived(consumerConfig, outputTopic, expectedValues.size()); streams.close(); assertThat(actualValues).isEqualTo(expectedValues);
List<String> actualValues = IntegrationTestUtils.waitUntilMinValuesRecordsReceived(consumerConfig, outputTopic, expectedValues.size()); streams.close(); assertThat(actualValues).isEqualTo(expectedValues);