projects
/
demos
/
kafka
/
chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: Made `SimpleChatHome` an implementation of `ChatHome`
[demos/kafka/chat]
/
src
/
test
/
java
/
de
/
juplo
/
kafka
/
chat
/
backend
/
api
/
ChatBackendControllerTest.java
diff --git
a/src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
b/src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
index
5ebd08d
..
b1c80a9
100644
(file)
--- a/
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
+++ b/
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java
@@
-264,10
+264,10
@@
public class ChatBackendControllerTest
ChatBackendProperties properties,
InMemoryChatHomeService service)
{
ChatBackendProperties properties,
InMemoryChatHomeService service)
{
-
ChatHome[] chatHomes = new
ChatHome[properties.getInmemory().getNumShards()];
+
SimpleChatHome[] chatHomes = new Simple
ChatHome[properties.getInmemory().getNumShards()];
Arrays
.stream(properties.getInmemory().getOwnedShards())
Arrays
.stream(properties.getInmemory().getOwnedShards())
- .forEach(i -> chatHomes[i] = new ChatHome(service, i));
+ .forEach(i -> chatHomes[i] = new
Simple
ChatHome(service, i));
return chatHomes;
}
}
return chatHomes;
}
}