aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/juick')
-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"));
+ }
}