aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/com/juick/UserTest.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/com/juick/UserTest.java b/src/test/java/com/juick/UserTest.java
index 9af67467..6c0cdb88 100644
--- a/src/test/java/com/juick/UserTest.java
+++ b/src/test/java/com/juick/UserTest.java
@@ -20,6 +20,8 @@ package com.juick;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.juick.model.User;
import com.juick.test.util.MockUtils;
+import com.juick.www.api.activity.model.objects.Mention;
+
import org.junit.jupiter.api.Test;
import java.io.IOException;
@@ -36,4 +38,9 @@ public class UserTest {
assertEquals(ugnich, jsonUgnich);
}
+ @Test
+ public void mentionFormat() {
+ Mention mention = new Mention("https://example.com/users/test", "testuser");
+ assertEquals("@testuser@example.com", mention.getName());
+ }
}