diff options
author | Vitaly Takmazov | 2016-07-07 11:52:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-07 11:52:56 +0300 |
commit | 01eada11aafcb712a366ce816c98c660f5ea6907 (patch) | |
tree | be34a296d2a35b24c360a17499c68a028cb88965 /src/test/java/com/juick/tests | |
parent | 201ed4cdb586c8516d1ec13b90cd615cc030a705 (diff) | |
parent | fbedd4f7784f0cb651cc8105c656a1c20da0e2d5 (diff) |
merge core develop
Diffstat (limited to 'src/test/java/com/juick/tests')
-rw-r--r-- | src/test/java/com/juick/tests/MessageTests.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/java/com/juick/tests/MessageTests.java b/src/test/java/com/juick/tests/MessageTests.java new file mode 100644 index 000000000..0392c7b35 --- /dev/null +++ b/src/test/java/com/juick/tests/MessageTests.java @@ -0,0 +1,18 @@ +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 |