From bf5550b515c305c017cf8b3fcf04976d74314233 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 31 Dec 2022 01:32:42 +0300 Subject: PMQueriesService -> ChatService --- src/test/java/com/juick/server/tests/ServerTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/test') 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())); } -- cgit v1.2.3