import java.time.Duration;
import java.util.List;
-import java.util.stream.Stream;
import static de.juplo.kafka.wordcount.recorder.RecorderApplicationIT.TOPIC_OUT;
import static org.assertj.core.api.Assertions.assertThat;
{
MultiValueMap<String, TestRecording> recordings = new LinkedMultiValueMap<>();
- Stream
- .of(TestData.INPUT_MESSAGES)
+ TestData
+ .getInputMessages()
.forEach(kv ->
{
sendRedording(kv.key, kv.value);
import org.apache.kafka.streams.KeyValue;
+import java.util.stream.Stream;
+
class TestData
{
static final String PETER = "päter";
static final String KLAUS = "klühs";
- static final KeyValue<String, String>[] INPUT_MESSAGES = new KeyValue[]
+ static final Stream<KeyValue<String, String>> getInputMessages()
+ {
+ return Stream.of(INPUT_MESSAGES);
+ }
+
+ private static final KeyValue<String, String>[] INPUT_MESSAGES = new KeyValue[]
{
new KeyValue<>("päter", "Hall° Wält?¢*&%€!"),
new KeyValue<>("päter", "Hallo Welt!"),