From bfb5f3a8eb08db001e611254fa300c107d27d50b Mon Sep 17 00:00:00 2001 From: Danny van Heumen Date: Sat, 2 Aug 2014 01:07:19 +0200 Subject: Specialized hashCode(), includes test. --- .../impl/protocol/irc/ChatRoomMemberIrcImplTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test') 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(); + } } -- cgit v1.1