|
|
|
|
@ -25,7 +25,7 @@ public void setUp() throws Exception
|
|
|
|
|
this.stackMock = EasyMock.createMock(IrcStack.class);
|
|
|
|
|
EasyMock.expect(this.providerMock.getIrcStack()).andReturn(stackMock);
|
|
|
|
|
EasyMock.expect(this.stackMock.getChannelTypes()).andReturn(
|
|
|
|
|
Collections.unmodifiableSet(Sets.newHashSet('#', '$')));
|
|
|
|
|
Collections.unmodifiableSet(Sets.newHashSet('#', '&')));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//@Test
|
|
|
|
|
@ -425,4 +425,19 @@ public void testSetChatRoomSubjectFailedByOtherRuntimeException()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Test creating chat room with alternative prefix. Special check to ensure
|
|
|
|
|
* that we don't forget about less often used prefixes.
|
|
|
|
|
*/
|
|
|
|
|
// @Test
|
|
|
|
|
public void testChatRoomWithAlternativePrefix()
|
|
|
|
|
{
|
|
|
|
|
EasyMock.replay(this.providerMock, this.stackMock);
|
|
|
|
|
ChatRoomIrcImpl alternative =
|
|
|
|
|
new ChatRoomIrcImpl("&MyAlternative-channel-prefix",
|
|
|
|
|
this.providerMock);
|
|
|
|
|
Assert.assertEquals("&MyAlternative-channel-prefix",
|
|
|
|
|
alternative.getIdentifier());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|