From 83f5f448ac65735e1ae2733032ec8c0f680eb60a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 1 Nov 2016 22:26:22 +0300 Subject: fix tests --- juick-core/src/main/java/com/juick/Message.java | 2 ++ src/test/java/com/juick/tests/ApiTests.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/juick-core/src/main/java/com/juick/Message.java b/juick-core/src/main/java/com/juick/Message.java index cc2381d8..2c004f5a 100644 --- a/juick-core/src/main/java/com/juick/Message.java +++ b/juick-core/src/main/java/com/juick/Message.java @@ -42,10 +42,12 @@ public class Message implements Comparable { public List Tags = new ArrayList<>(); private Date date; public int TimeAgo = 0; + @JsonIgnore public int Privacy = 1; public boolean FriendsOnly = false; public boolean ReadOnly = false; public boolean Hidden = false; + @JsonIgnore public boolean VisitorCanComment = true; public int Replies = 0; public String RepliesBy = null; diff --git a/src/test/java/com/juick/tests/ApiTests.java b/src/test/java/com/juick/tests/ApiTests.java index 03b051f2..02180888 100644 --- a/src/test/java/com/juick/tests/ApiTests.java +++ b/src/test/java/com/juick/tests/ApiTests.java @@ -96,7 +96,7 @@ public class ApiTests { assertNotEquals("db tags should be escaped", dbTagName, htmlTag.getName()); assertEquals("object tags should unescaped", htmlTag.getName(), StringEscapeUtils.unescapeHtml4(dbTagName)); assertEquals("template should encode escaped tag in url and show escaped tag in name", - " *>_<", PageTemplates.formatTags(new ArrayList() {{ add(htmlTag); }} )); + ">_<", PageTemplates.formatTags(new ArrayList() {{ add(htmlTag); }} )); } @Test -- cgit v1.2.3