aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/UserTest.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-08-22 07:30:20 +0300
committerGravatar Vitaly Takmazov2021-08-22 07:30:20 +0300
commit58b1fbbdd610de31a5883813206f9086e241207e (patch)
tree2922407c2a5701f3fa8f53cde7b485ceccc3795f /src/test/java/com/juick/UserTest.java
parent03d42d6e6ccaee4ff9d2a0808e51e5f9f0dc18c3 (diff)
ActivityPub: Mention includes domain in the name property
Diffstat (limited to 'src/test/java/com/juick/UserTest.java')
-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());
+ }
}