diff options
author | Vitaly Takmazov | 2016-04-22 16:59:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-04-22 16:59:50 +0300 |
commit | fb4dfa3fbc04e44e808bbd4d1ad764fa979bb3ca (patch) | |
tree | 8e663cdd5ab89b3da864d4f4d89fcd8f81932450 | |
parent | 277077cd978b708f6cdcf9132154342d17978c55 (diff) |
drop tags parser
-rw-r--r-- | build.gradle | 6 | ||||
-rw-r--r-- | src/main/java/com/juick/Message.java | 6 | ||||
-rw-r--r-- | src/test/java/com/juick/tests/MessageTests.java | 18 |
3 files changed, 1 insertions, 29 deletions
diff --git a/build.gradle b/build.gradle index c973749c..e9bf9cdc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1 @@ -apply plugin: "java" - -dependencies { - testCompile 'junit:junit:4.12' -} +apply plugin: "java"
\ No newline at end of file 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 |