aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r--src/test/java/com/juick/tests/MessageTests.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/juick/tests/MessageTests.java b/src/test/java/com/juick/tests/MessageTests.java
index 2cc8fed2..0baf53b6 100644
--- a/src/test/java/com/juick/tests/MessageTests.java
+++ b/src/test/java/com/juick/tests/MessageTests.java
@@ -22,6 +22,7 @@ import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.juick.Message;
import com.juick.util.DateFormattersHolder;
+import com.juick.util.MessageUtils;
import org.apache.commons.codec.CharEncoding;
import org.json.JSONObject;
import org.junit.Test;
@@ -49,7 +50,7 @@ public class MessageTests {
public void messageParserSerializer() throws ParseException, ParserConfigurationException,
IOException, SAXException, JAXBException {
Message msg = new Message();
- msg.parseTags("test test" + (char) 0xA0 + "2 test3");
+ msg.setTags(MessageUtils.parseTags("test test" + (char) 0xA0 + "2 test3"));
assertEquals("First tag must be", "test", msg.getTags().get(0).getName());
assertEquals("Third tag must be", "test3", msg.getTags().get(2).getName());
assertEquals("Count of tags must be", 3, msg.getTags().size());