Пример #1
0
 @Test
 public void shouldReturnIdent() {
   IrcMessage aMessage = new IrcMessage(StaticMessages.join);
   assertEquals("user", aMessage.getIdent());
 }
Пример #2
0
 @Test
 public void shouldReturnEmptyIdent() {
   IrcMessage aMessage = new IrcMessage(StaticMessages.messageWithoutIdent);
   assertEquals("", aMessage.getIdent());
 }