diff options
author | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-08-16 23:01:36 +0200 |
---|---|---|
committer | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-09-29 19:07:00 +0200 |
commit | c6563bc46d3cee2f4ed3a954cfbbb293c0676b4a (patch) | |
tree | 2ff65cc7d90b6ebaec096ffc7aab7d354afedec7 /test/net | |
parent | 54a9e733a84decefa34f195da0b3f2a18f989a18 (diff) | |
download | jitsi-c6563bc46d3cee2f4ed3a954cfbbb293c0676b4a.zip jitsi-c6563bc46d3cee2f4ed3a954cfbbb293c0676b4a.tar.gz jitsi-c6563bc46d3cee2f4ed3a954cfbbb293c0676b4a.tar.bz2 |
Created separate class for IRC presence management.
Diffstat (limited to 'test/net')
-rw-r--r-- | test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java b/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java index e1f22ce..43da6d1 100644 --- a/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java +++ b/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java @@ -212,17 +212,19 @@ public class ChatRoomMemberIrcImplTest member.removeRole(ChatRoomMemberRole.MEMBER); Assert.assertSame(ChatRoomMemberRole.ADMINISTRATOR, member.getRole()); } - + public void testGetContact() { ChatRoom chatroom = EasyMock.createMock(ChatRoom.class); ProtocolProviderServiceIrcImpl provider = EasyMock.createMock(ProtocolProviderServiceIrcImpl.class); - OperationSetPersistentPresenceIrcImpl pp = EasyMock.createMock(OperationSetPersistentPresenceIrcImpl.class); + OperationSetPersistentPresenceIrcImpl pp = + EasyMock.createMock(OperationSetPersistentPresenceIrcImpl.class); EasyMock.expect(provider.getPersistentPresence()).andReturn(pp); EasyMock.replay(provider); - ChatRoomMemberIrcImpl member = new ChatRoomMemberIrcImpl(provider, chatroom, - "user", ChatRoomMemberRole.SILENT_MEMBER); + ChatRoomMemberIrcImpl member = + new ChatRoomMemberIrcImpl(provider, chatroom, "user", + ChatRoomMemberRole.SILENT_MEMBER); Assert.assertNull(member.getContact()); } @@ -231,8 +233,9 @@ public class ChatRoomMemberIrcImplTest ChatRoom chatroom = EasyMock.createMock(ChatRoom.class); ProtocolProviderServiceIrcImpl provider = EasyMock.createMock(ProtocolProviderServiceIrcImpl.class); - ChatRoomMemberIrcImpl member = new ChatRoomMemberIrcImpl(provider, chatroom, - "user", ChatRoomMemberRole.SILENT_MEMBER); + ChatRoomMemberIrcImpl member = + new ChatRoomMemberIrcImpl(provider, chatroom, "user", + ChatRoomMemberRole.SILENT_MEMBER); Assert.assertNull(member.getAvatar()); } |