private static final KeyValue<InputWindowedKey, InputCounter>[] INPUT_MESSAGES = new KeyValue[]
{
new KeyValue<>(
- InputWindowedKey.of(PETER.getUser(),"Hallo"),
- InputCounter.of(PETER.getUser(),"Hallo",1)),
+ InputWindowedKey.of(0, 0,"Hallo"),
+ InputCounter.of("Hallo",1)),
new KeyValue<>(
- InputWindowedKey.of(KLAUS.getUser(),"Müsch"),
- InputCounter.of(KLAUS.getUser(),"Müsch",1)),
+ InputWindowedKey.of(0, 0,"Müsch"),
+ InputCounter.of("Müsch",1)),
new KeyValue<>(
- InputWindowedKey.of(PETER.getUser(),"Welt"),
- InputCounter.of(PETER.getUser(),"Welt",1)),
+ InputWindowedKey.of(0, 0,"Welt"),
+ InputCounter.of("Welt",1)),
new KeyValue<>(
- InputWindowedKey.of(KLAUS.getUser(),"Müsch"),
- InputCounter.of(KLAUS.getUser(),"Müsch",2)),
+ InputWindowedKey.of(0, 0,"Müsch"),
+ InputCounter.of("Müsch",2)),
new KeyValue<>(
- InputWindowedKey.of(KLAUS.getUser(),"s"),
- InputCounter.of(KLAUS.getUser(),"s",1)),
+ InputWindowedKey.of(0, 0,"s"),
+ InputCounter.of("s",1)),
new KeyValue<>(
- InputWindowedKey.of(PETER.getUser(),"Boäh"),
- InputCounter.of(PETER.getUser(),"Boäh",1)),
+ InputWindowedKey.of(0, 0,"Boäh"),
+ InputCounter.of("Boäh",1)),
new KeyValue<>(
- InputWindowedKey.of(PETER.getUser(),"Welt"),
- InputCounter.of(PETER.getUser(),"Welt",2)),
+ InputWindowedKey.of(0, 0,"Welt"),
+ InputCounter.of("Welt",2)),
new KeyValue<>(
- InputWindowedKey.of(PETER.getUser(),"Boäh"),
- InputCounter.of(PETER.getUser(),"Boäh",2)),
+ InputWindowedKey.of(0, 0,"Boäh"),
+ InputCounter.of("Boäh",2)),
new KeyValue<>(
- InputWindowedKey.of(KLAUS.getUser(),"s"),
- InputCounter.of(KLAUS.getUser(),"s",2)),
+ InputWindowedKey.of(0, 0,"s"),
+ InputCounter.of("s",2)),
new KeyValue<>(
- InputWindowedKey.of(PETER.getUser(),"Boäh"),
- InputCounter.of(PETER.getUser(),"Boäh",3)),
+ InputWindowedKey.of(0, 0,"Boäh"),
+ InputCounter.of("Boäh",3)),
new KeyValue<>(
- InputWindowedKey.of(KLAUS.getUser(),"s"),
- InputCounter.of(KLAUS.getUser(),"s",3)),
+ InputWindowedKey.of(0, 0,"s"),
+ InputCounter.of("s",3)),
};
static void assertExpectedMessages(MultiValueMap<TestUser, TestRanking> receivedMessages)
private static WindowedKey userOf(TestUser user)
{
- return WindowedKey.of(user.getUser());
+ return WindowedKey.of(0, 0, user.getUser());
}
static void assertExpectedNumberOfMessagesForUsers(MultiValueMap<TestUser, TestRanking> receivedMessages)