From 1f9ee1cb9d3c199ec6f1d87f814504295c60959b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 18 May 2018 10:38:41 +0300 Subject: ObjectMapper is autoconfigured by Spring Boot --- juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-server/src/test/java') diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java index ebca8c6c..840bebbb 100644 --- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java +++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java @@ -393,7 +393,8 @@ public class ServerTests { .andExpect(jsonPath("$[0].attachment.url", is(String.format("https://i.juick.com/p/%d.png", msg.getMid())))) .andExpect(jsonPath("$[0].attachment.small.url", - is(String.format("https://i.juick.com/photos-512/%d.png", msg.getMid())))); + is(String.format("https://i.juick.com/photos-512/%d.png", msg.getMid())))) + .andExpect(jsonPath("$[0].user.avatar").doesNotExist()); } @Test @@ -1025,6 +1026,5 @@ public class ServerTests { Attachment attachment = imageUtils.getAttachment(new File(getClass().getClassLoader().getResource("Transparent.gif").toURI())); assertThat(attachment.getHeight(), is(1)); assertThat(attachment.getWidth(), is(1)); - } } -- cgit v1.2.3