Skip to content

Commit

Permalink
akka: simple equality test for SignaturePair
Browse files Browse the repository at this point in the history
Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>
  • Loading branch information
KetothXupack committed Oct 20, 2013
1 parent 94973c3 commit cc21b1f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ public void testCache() throws Exception {
MessageMethodInvoker.invokeOnReceive(this, 100);
assertTrue(MessageMethodInvoker.CACHE.containsKey(
SignaturePair.of(new Class<?>[]{Integer.class}, MessageMethodInvokerTest.class)));

final SignaturePair p1 = SignaturePair.of(new Class<?>[]{Integer.class}, MessageMethodInvokerTest.class);
final SignaturePair p2 = SignaturePair.of(new Class<?>[]{Integer.class}, MessageMethodInvokerTest.class);
assertEquals(p1, p2);
assertEquals(p1, p1);
assertNotEquals(p1, "");
assertFalse(p1.equals(null));
}

@Test
Expand Down

0 comments on commit cc21b1f

Please sign in to comment.