aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/server/tests/ServerTests.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-07-10 13:34:38 +0300
committerGravatar Vitaly Takmazov2019-07-10 13:34:38 +0300
commit583f02bebd9d383b1b1ecf1ca499f77ea5696960 (patch)
tree1c63ee731133d2620e6bbfab3b303bd12442b81e /src/test/java/com/juick/server/tests/ServerTests.java
parent3188babc5e9acb46816a6d4a917c31340af11298 (diff)
Revert "ActivityPub contexts already have type, no need to duplicate"
This reverts commit 3188babc5e9acb46816a6d4a917c31340af11298.
Diffstat (limited to 'src/test/java/com/juick/server/tests/ServerTests.java')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 53fbbf1d..de742447 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -37,7 +37,6 @@ import com.juick.server.*;
import com.juick.server.api.activity.Profile;
import com.juick.server.api.activity.model.Context;
import com.juick.server.api.activity.model.activities.*;
-import com.juick.server.api.activity.model.objects.Mention;
import com.juick.server.api.activity.model.objects.Note;
import com.juick.server.api.activity.model.objects.Person;
import com.juick.server.api.webfinger.model.Account;
@@ -2154,13 +2153,4 @@ public class ServerTests {
.orElseThrow();
assertThat(htmlPM, is(getSnapshot(testPrivateHtmlEmail)));
}
- @Test
- public void mentionShouldNotDuplicateType() throws Exception {
- Mention mention = new Mention("http://localhost/u/ugnich", "ugnich");
- String mentionStr = jsonMapper.writeValueAsString(mention);
- Context mentionFromString = jsonMapper.readValue(mentionStr, Context.class);
- assertThat(mention, is(samePropertyValuesAs(mentionFromString)));
- JsonNode mentionNode = jsonMapper.readTree(mentionStr);
- assertThat(mentionNode.findValues("type").size(), is(1));
- }
}