diff options
author | Vitaly Takmazov | 2022-12-22 16:22:52 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-22 16:22:52 +0300 |
commit | 33676cf1653f2053f57a9e0ecd5c8bda6c64d986 (patch) | |
tree | 0d15ff63f24d4ebf7554c51eb79a7b4d30689c7d /src/test/java/com/juick/server/tests | |
parent | a06f31f65ab32d71fef8a6966c6bf5a114153341 (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.java | 14 |
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")); + } } |