WIP
authorKai Moritz <kai@juplo.de>
Sun, 3 Sep 2023 15:47:38 +0000 (17:47 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 3 Sep 2023 15:47:38 +0000 (17:47 +0200)
src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractInMemoryStorageIT.java

index bff02a3..220d26e 100644 (file)
@@ -22,30 +22,18 @@ public abstract class AbstractInMemoryStorageIT extends AbstractStorageStrategyI
   {
     return new StorageStrategyITConfig()
     {
-      InMemoryChatHomeService inMemoryChatHomeService = new InMemoryChatHomeService(
-          1,
-          new int[] { 0 },
-          getStorageStrategy().read());
+      int bufferSize = 8;
 
-      SimpleChatHome simpleChatHome = new SimpleChatHome(inMemoryChatHomeService);
-
-      InMemoryChatRoomFactory chatRoomFactory = new InMemoryChatRoomFactory(
-          inMemoryChatHomeService,
-          chatRoomId -> 0,
+      SimpleChatHome simpleChatHome = new SimpleChatHome(
+          getStorageStrategy().read(),
           clock,
-          8);
+          bufferSize);
 
       @Override
       public ChatHome getChatHome()
       {
         return simpleChatHome;
       }
-
-      @Override
-      public ChatRoomFactory getChatRoomFactory()
-      {
-        return chatRoomFactory;
-      }
     };
   }
 }