diff options
author | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-08-02 01:07:19 +0200 |
---|---|---|
committer | Danny van Heumen <danny@dannyvanheumen.nl> | 2014-08-02 01:07:19 +0200 |
commit | bfb5f3a8eb08db001e611254fa300c107d27d50b (patch) | |
tree | 04b3a2fee7fd9ed2eebe5ebe78c14ba9f7f76b3f /test | |
parent | d30aa044d4aabfdbbebd4deddaf8ea447a35fccf (diff) | |
download | jitsi-bfb5f3a8eb08db001e611254fa300c107d27d50b.zip jitsi-bfb5f3a8eb08db001e611254fa300c107d27d50b.tar.gz jitsi-bfb5f3a8eb08db001e611254fa300c107d27d50b.tar.bz2 |
Specialized hashCode(), includes test.
Diffstat (limited to 'test')
-rw-r--r-- | test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java | 11 |
1 files changed, 11 insertions, 0 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 2761f9d..20a931b 100644 --- a/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java +++ b/test/net/java/sip/communicator/impl/protocol/irc/ChatRoomMemberIrcImplTest.java @@ -300,4 +300,15 @@ public class ChatRoomMemberIrcImplTest "susy", ChatRoomMemberRole.SILENT_MEMBER); Assert.assertTrue(member1.equals(member2)); } + + public void testHashcodeNotFailing() + { + ChatRoom chatroom = EasyMock.createMock(ChatRoom.class); + ProtocolProviderService provider = + EasyMock.createMock(ProtocolProviderService.class); + ChatRoomMemberIrcImpl member = + new ChatRoomMemberIrcImpl(provider, chatroom, "ET", + ChatRoomMemberRole.ADMINISTRATOR); + member.hashCode(); + } } |