counter: 1.3.1 - Cleand code/setup for tests
[demos/kafka/wordcount] / src / test / java / de / juplo / kafka / wordcount / counter / TestData.java
index 1ecfdbd..862eb2b 100644 (file)
@@ -33,37 +33,37 @@ class TestData
 
        private static final KeyValue<TestInputUser, TestInputWord>[] INPUT_MESSAGES = new KeyValue[]
        {
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(PETER),
                                        TestInputWord.of(PETER, WORD_HALLO)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(KLAUS),
                                        TestInputWord.of(KLAUS, WORD_MÜSCH)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(PETER),
                                        TestInputWord.of(PETER, WORD_WELT)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(KLAUS),
                                        TestInputWord.of(KLAUS, WORD_MÜSCH)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(KLAUS),
                                        TestInputWord.of(KLAUS, WORD_S)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(PETER),
                                        TestInputWord.of(PETER, WORD_BOÄH)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(PETER),
                                        TestInputWord.of(PETER, WORD_WELT)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(PETER),
                                        TestInputWord.of(PETER, WORD_BOÄH)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(KLAUS),
                                        TestInputWord.of(KLAUS, WORD_S)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(PETER),
                                        TestInputWord.of(PETER, WORD_BOÄH)),
-                       new KeyValue<>(
+                       KeyValue.pair(
                                        TestInputUser.of(KLAUS),
                                        TestInputWord.of(KLAUS, WORD_S)),
        };