aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDanny van Heumen <danny@dannyvanheumen.nl>2014-08-02 01:07:19 +0200
committerDanny van Heumen <danny@dannyvanheumen.nl>2014-08-02 01:07:19 +0200
commitbfb5f3a8eb08db001e611254fa300c107d27d50b (patch)
tree04b3a2fee7fd9ed2eebe5ebe78c14ba9f7f76b3f /test
parentd30aa044d4aabfdbbebd4deddaf8ea447a35fccf (diff)
downloadjitsi-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.java11
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();
+ }
}