aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-12-03 17:15:37 +0300
committerGravatar Vitaly Takmazov2018-12-03 17:15:37 +0300
commit7d021cbf6139bd830ed1db4199caa106aa14f22b (patch)
treeb41036626d85e07b77e204a1cd5e3660d9b3d90c /src/test/java
parentf418a0bfda83f6a19059209c7e7c5904d3e67a2a (diff)
www: fix verified field calculation
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 1aaa578d..deef6f30 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -1852,4 +1852,10 @@ public class ServerTests {
List<Message> top = messagesService.getMessages(ugnich, messagesService.getPopular(ugnich.getUid(), 0));
assertThat(top.size(), is(1));
}
+ @Test
+ public void verifiedUsersTest(){
+ assertThat(userService.getUserByName("ugnich").isVerified(), is(false));
+ jdbcTemplate.update("INSERT INTO facebook(user_id, fb_id) VALUES(?, ?)", ugnich.getUid(), "100001866137681");
+ assertThat(userService.getUserByName("ugnich").isVerified(), is(true));
+ }
}