From f010d75872763547ecbe621ae3e8eb967950453f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 13 Mar 2018 15:18:03 +0300 Subject: core: cleanup unused message properties --- src/test/java/com/juick/tests/MessageTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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()); -- cgit v1.2.3