- consumer.accept(
- "peter",
- Word.of("peter","Hallo"));
- consumer.accept(
- "klaus",
- Word.of("klaus","Müsch"));
- consumer.accept(
- "peter",
- Word.of("peter","Welt"));
- consumer.accept(
- "klaus",
- Word.of("klaus","Müsch"));
- consumer.accept(
- "klaus",
- Word.of("klaus","s"));
- consumer.accept(
- "peter",
- Word.of("peter","Boäh"));
- consumer.accept(
- "peter",
- Word.of("peter","Welt"));
- consumer.accept(
- "peter",
- Word.of("peter","Boäh"));
- consumer.accept(
- "klaus",
- Word.of("klaus","s"));
- consumer.accept(
- "peter",
- Word.of("peter","Boäh"));
- consumer.accept(
- "klaus",
- Word.of("klaus","s"));
+ new KeyValue<>(
+ PETER,
+ TestInputWord.of(PETER, "Hallo")),
+ new KeyValue<>(
+ KLAUS,
+ TestInputWord.of(KLAUS, "Müsch")),
+ new KeyValue<>(
+ PETER,
+ TestInputWord.of(PETER, "Welt")),
+ new KeyValue<>(
+ KLAUS,
+ TestInputWord.of(KLAUS, "Müsch")),
+ new KeyValue<>(
+ KLAUS,
+ TestInputWord.of(KLAUS, "s")),
+ new KeyValue<>(
+ PETER,
+ TestInputWord.of(PETER, "Boäh")),
+ new KeyValue<>(
+ PETER,
+ TestInputWord.of(PETER, "Welt")),
+ new KeyValue<>(
+ PETER,
+ TestInputWord.of(PETER, "Boäh")),
+ new KeyValue<>(
+ KLAUS,
+ TestInputWord.of(KLAUS, "s")),
+ new KeyValue<>(
+ PETER,
+ TestInputWord.of(PETER, "Boäh")),
+ new KeyValue<>(
+ KLAUS,
+ TestInputWord.of(KLAUS, "s")),
+ };
+
+ static Stream<KeyValue<String, TestInputWord>> getInputMessages()
+ {
+ return Stream.of(TestData.INPUT_MESSAGES);