From fb4dfa3fbc04e44e808bbd4d1ad764fa979bb3ca Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 22 Apr 2016 16:59:50 +0300 Subject: drop tags parser --- src/main/java/com/juick/Message.java | 6 ------ src/test/java/com/juick/tests/MessageTests.java | 18 ------------------ 2 files changed, 24 deletions(-) delete mode 100644 src/test/java/com/juick/tests/MessageTests.java (limited to 'src') diff --git a/src/main/java/com/juick/Message.java b/src/main/java/com/juick/Message.java index c128b4f2..1a690106 100644 --- a/src/main/java/com/juick/Message.java +++ b/src/main/java/com/juick/Message.java @@ -80,12 +80,6 @@ public class Message implements Comparable { Recommendation = msg.Recommendation; } - public void parseTags(String strTags) { - if (strTags != null) { - Tags.addAll(Arrays.asList(strTags.split(" "))); - } - } - @Override public boolean equals(Object obj) { if (!(obj instanceof Message)) { diff --git a/src/test/java/com/juick/tests/MessageTests.java b/src/test/java/com/juick/tests/MessageTests.java deleted file mode 100644 index 0392c7b3..00000000 --- a/src/test/java/com/juick/tests/MessageTests.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.juick.tests; - -import static org.junit.Assert.assertEquals; - -import org.junit.Test; - -import com.juick.Message; - -public class MessageTests { - @Test - public void messageTagsParser() { - Message msg = new Message(); - msg.parseTags("test test" + (char)0xA0 + "2 test3"); - assertEquals("First tag must be", "test", msg.Tags.get(0)); - assertEquals("Third tag must be", "test3", msg.Tags.get(2)); - assertEquals("Count of tags must be", 3, msg.Tags.size()); - } -} \ No newline at end of file -- cgit v1.2.3