aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/server/tests
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-22 16:22:52 +0300
committerGravatar Vitaly Takmazov2022-12-22 16:22:52 +0300
commit33676cf1653f2053f57a9e0ecd5c8bda6c64d986 (patch)
tree0d15ff63f24d4ebf7554c51eb79a7b4d30689c7d /src/test/java/com/juick/server/tests
parenta06f31f65ab32d71fef8a6966c6bf5a114153341 (diff)
User info updates fix
Diffstat (limited to 'src/test/java/com/juick/server/tests')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java14
1 files changed, 14 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 38eace7c..6eae82f3 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2774,4 +2774,18 @@ public class ServerTests {
redirectedUrl("https://juick.com/vt/")
);
}
+ @Test
+ public void userInfoUpdateTest() {
+ assertThat(ugnich.getFullName(), equalTo(null));
+ var fullUgnichName = "Anton Ugnich";
+ ugnich.setFullName(fullUgnichName);
+ userService.updateUserInfo(ugnich);
+ var info = userService.getUserInfo(ugnich);
+ assertThat(info.getName(), equalTo(ugnichName));
+ assertThat(info.getFullName(), equalTo(fullUgnichName));
+ ugnich.setDescription("Test");
+ userService.updateUserInfo(ugnich);
+ var descr = userService.getUserInfo(ugnich);
+ assertThat(descr.getDescription(), equalTo("Test"));
+ }
}