aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-08-05 10:49:20 +0300
committerGravatar Vitaly Takmazov2019-08-05 10:49:20 +0300
commit17578516fe0978602ddfac56055cfb1d1b2e0121 (patch)
tree6573d8fcf9b24294952817f9771399e2faa6c9dd /src/test/java/com/juick
parent82cbd49555a723f91ed3684a64debeade9c0b3f8 (diff)
Evict caches on user changes, fix tests
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index de742447..0064a589 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -1909,7 +1909,9 @@ public class ServerTests {
@Test
public void verifiedUsersTest(){
assertThat(userService.getUserByName("ugnich").isVerified(), is(false));
- jdbcTemplate.update("INSERT INTO facebook(user_id, fb_id) VALUES(?, ?)", ugnich.getUid(), "100001866137681");
+ crosspostService.addFacebookState("12345", "http://localhost");
+ crosspostService.createFacebookUser(12345, "12345", "5678", "ugnich");
+ crosspostService.setFacebookUser("12345", ugnich.getUid());
assertThat(userService.getUserByName("ugnich").isVerified(), is(true));
}
@Test