From 7d021cbf6139bd830ed1db4199caa106aa14f22b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 3 Dec 2018 17:15:37 +0300 Subject: www: fix verified field calculation --- src/test/java/com/juick/server/tests/ServerTests.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test/java/com/juick/server') 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 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)); + } } -- cgit v1.2.3