aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-01 22:26:22 +0300
committerGravatar Vitaly Takmazov2016-11-01 22:26:22 +0300
commit83f5f448ac65735e1ae2733032ec8c0f680eb60a (patch)
tree8ea6a08221d53f21739222bee027cc9f19167f16
parentb4b9dfff3b074ba8961fd84b1f8193aff4756e37 (diff)
fix tests
-rw-r--r--juick-core/src/main/java/com/juick/Message.java2
-rw-r--r--src/test/java/com/juick/tests/ApiTests.java2
2 files changed, 3 insertions, 1 deletions
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<Tag> 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",
- " *<a href=\"/tag/%3E_%3C\" rel=\"nofollow\">&gt;_&lt;</a>", PageTemplates.formatTags(new ArrayList<Tag>() {{ add(htmlTag); }} ));
+ "<a href=\"/tag/%3E_%3C\" rel=\"nofollow\">&gt;_&lt;</a>", PageTemplates.formatTags(new ArrayList<Tag>() {{ add(htmlTag); }} ));
}
@Test