aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/tests/MessageTests.java
blob: 0392c7b359871d21a3603b33a5c73698648ba3aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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());
	}
}