diff options
author | Vitaly Takmazov | 2021-08-22 07:30:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-08-22 07:30:20 +0300 |
commit | 58b1fbbdd610de31a5883813206f9086e241207e (patch) | |
tree | 2922407c2a5701f3fa8f53cde7b485ceccc3795f /src/test/java | |
parent | 03d42d6e6ccaee4ff9d2a0808e51e5f9f0dc18c3 (diff) |
ActivityPub: Mention includes domain in the name property
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/com/juick/UserTest.java | 7 |
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()); + } } |