diff options
Diffstat (limited to 'src/test/java/com/juick')
-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())); } |