diff options
author | Vitaly Takmazov | 2022-12-31 01:32:42 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-31 01:32:42 +0300 |
commit | bf5550b515c305c017cf8b3fcf04976d74314233 (patch) | |
tree | 7da644034410ee138dc821a6f0f30194a2cd0859 /src/test/java/com/juick/server | |
parent | 47bdad85f7ac2b12daf1da4e340be902a568d976 (diff) |
PMQueriesService -> ChatService
Diffstat (limited to 'src/test/java/com/juick/server')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 541c2fc1..79cee0d4 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -130,7 +130,7 @@ import com.juick.server.MockNotificationListener; import com.juick.server.MockUpdateListener; import com.juick.service.EmailService; import com.juick.service.MessagesService; -import com.juick.service.PMQueriesService; +import com.juick.service.ChatService; import com.juick.service.PrivacyQueriesService; import com.juick.service.StorageService; import com.juick.service.SubscriptionService; @@ -272,7 +272,7 @@ public class ServerTests { @Inject private EmailService emailService; @Inject - private PMQueriesService pmQueriesService; + private ChatService chatService; @Inject private TelegramService telegramService; @Inject @@ -457,8 +457,8 @@ public class ServerTests { @Test public void pmTests() { - pmQueriesService.createPM(freefd.getUid(), ugnich.getUid(), "hello"); - Message pm = pmQueriesService.getPMMessages(ugnich.getUid(), freefd.getUid()).get(0); + chatService.createMessage(freefd.getUid(), ugnich.getUid(), "hello"); + Message pm = chatService.getChat(ugnich.getUid(), freefd.getUid()).get(0); assertThat(pm.getText(), equalTo("hello")); assertThat(pm.getUser().getUid(), equalTo(freefd.getUid())); } |