blob: 47b2d13c0bc70602b8e0ef70e8493d10838744c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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());
}
}
|