Source:
private int tryCleanGlobal(final boolean withIntermediateTopics, final String resetScenario, final String resetScenarioArg) throws Exception { final List<String> parameterList = new ArrayList<>( Arrays.asList("--application-id", appID, "--bootstrap-servers", cluster.bootstrapServers(), "--input-topics", INPUT_TOPIC, "--execute")); if (withIntermediateTopics) { parameterList.add("--intermediate-topics"); parameterList.add(INTERMEDIATE_USER_TOPIC); } final Map<String, Object> sslConfig = getClientSslConfig(); if (sslConfig != null) { final File configFile = TestUtils.tempFile(); final BufferedWriter writer = new BufferedWriter(new FileWriter(configFile)); writer.write(CommonClientConfigs.SECURITY_PROTOCOL_CONFIG + "=SSL\n"); writer.write(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG + "=" + sslConfig.get(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG) + "\n"); writer.write(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG + "=" + ((Password) sslConfig.get(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG)).value() + "\n"); writer.close(); parameterList.add("--config-file"); parameterList.add(configFile.getAbsolutePath()); } if (resetScenario != null) { parameterList.add(resetScenario); } if (resetScenarioArg != null) { parameterList.add(resetScenarioArg); } final String[] parameters = parameterList.toArray(new String[0]); final Properties cleanUpConfig = new Properties(); cleanUpConfig.put(ConsumerConfig.HEARTBEAT_INTERVAL_MS_CONFIG, 100); cleanUpConfig.put(ConsumerConfig.SESSION_TIMEOUT_MS_CONFIG, "" + CLEANUP_CONSUMER_TIMEOUT); final int exitCode = new StreamsResetter().run(parameters, cleanUpConfig); return exitCode; }

Target:
private boolean tryCleanGlobal(final boolean withIntermediateTopics, final String resetScenario, final String resetScenarioArg) throws Exception { final List<String> parameterList = new ArrayList<>( Arrays.asList("--application-id", appID, "--bootstrap-servers", cluster.bootstrapServers(), "--input-topics", INPUT_TOPIC, "--execute")); if (withIntermediateTopics) { parameterList.add("--intermediate-topics"); parameterList.add(INTERMEDIATE_USER_TOPIC); } final Map<String, Object> sslConfig = getClientSslConfig(); if (sslConfig != null) { final File configFile = TestUtils.tempFile(); final BufferedWriter writer = new BufferedWriter(new FileWriter(configFile)); writer.write(CommonClientConfigs.SECURITY_PROTOCOL_CONFIG + "=SSL\n"); writer.write(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG + "=" + sslConfig.get(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG) + "\n"); writer.write(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG + "=" + ((Password) sslConfig.get(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG)).value() + "\n"); writer.close(); parameterList.add("--config-file"); parameterList.add(configFile.getAbsolutePath()); } if (resetScenario != null) { parameterList.add(resetScenario); } if (resetScenarioArg != null) { parameterList.add(resetScenarioArg); } final String[] parameters = parameterList.toArray(new String[0]); final Properties cleanUpConfig = new Properties(); cleanUpConfig.put(ConsumerConfig.HEARTBEAT_INTERVAL_MS_CONFIG, 100); cleanUpConfig.put(ConsumerConfig.SESSION_TIMEOUT_MS_CONFIG, "" + CLEANUP_CONSUMER_TIMEOUT); return new StreamsResetter().run(parameters, cleanUpConfig) == 0; }