diff options
author | Vitaly Takmazov | 2023-01-15 09:47:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-15 09:47:06 +0300 |
commit | 5c11e3e85b70a3789c3e330209122723f1b38121 (patch) | |
tree | 4f8e432a2795e9dc91a0092c38e5dc27c8c7e7c7 /src/test | |
parent | 9cc0391c14f64a5b6e0835f1ed07f56304372cf5 (diff) |
PushQueriesService -> UserService
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index d6f0b6ae..de85fbf3 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -280,8 +280,6 @@ public class ServerTests { private User archiveUser; @Inject private ConversionService conversionService; - @Inject - private PushQueriesService pushQueriesService; private static User ugnich, freefd; static String ugnichName, ugnichPassword, freefdName, freefdPassword; @@ -2759,11 +2757,11 @@ public class ServerTests { @Test public void userServicesTest() throws Exception { jdbcTemplate.execute("DELETE FROM user_services"); - pushQueriesService.addToken(ugnich.getUid(), "fcm", "12345"); - pushQueriesService.addToken(ugnich.getUid(), "mpns", "23456"); - pushQueriesService.addToken(ugnich.getUid(), "xmpp", "234567"); - pushQueriesService.addToken(ugnich.getUid(), "durov", "345678"); - assertThat(pushQueriesService.getTokens(List.of(ugnich.getUid())).size(), is(4)); + userService.addToken(ugnich.getUid(), "fcm", "12345"); + userService.addToken(ugnich.getUid(), "mpns", "23456"); + userService.addToken(ugnich.getUid(), "xmpp", "234567"); + userService.addToken(ugnich.getUid(), "durov", "345678"); + assertThat(userService.getTokens(List.of(ugnich.getUid())).size(), is(4)); mockMvc.perform(get("/api/notifications") .with(httpBasic(serviceUser.getName(), serviceUser.getCredentials())) .param("uid", String.valueOf(ugnich.getUid()))) |