aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/test/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-03 13:14:15 +0300
committerGravatar Vitaly Takmazov2018-11-03 13:14:15 +0300
commit2a64e080a395170875d62d3bebaf4dce3815bb13 (patch)
treee9c34caf2a694899ea67ab13d6bb2e0c20bee20d /juick-common/src/test/java
parent5cf3c20ed4463c6f35d51fc4e10366fe2b850f29 (diff)
ActivityPub: mentions with @user@server.tld
Diffstat (limited to 'juick-common/src/test/java')
-rw-r--r--juick-common/src/test/java/com/juick/MessageTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-common/src/test/java/com/juick/MessageTest.java b/juick-common/src/test/java/com/juick/MessageTest.java
index d9c83b84..6197f861 100644
--- a/juick-common/src/test/java/com/juick/MessageTest.java
+++ b/juick-common/src/test/java/com/juick/MessageTest.java
@@ -177,5 +177,7 @@ public class MessageTest {
List<String> mentions = MessageUtils.getMentions(msg);
assertThat(mentions.size(), is(1));
assertThat(mentions.get(0), is("@ugnich"));
+ msg.setText("And dick is @ugnich@jabber.zp.ua");
+ assertThat(MessageUtils.getGlobalMentions(msg).size(), is(1));
}
}