From: erik Date: Fri, 4 Apr 2008 22:11:20 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.2@603~195 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=eeb78c1f593f271f8ea1b4df046dc844a6122483;p=utils --- diff --git a/trunk/system/general/src/test/java/org/wamblee/system/DefaultRequiredInterfaceTest.java b/trunk/system/general/src/test/java/org/wamblee/system/DefaultRequiredInterfaceTest.java new file mode 100644 index 00000000..6a209b48 --- /dev/null +++ b/trunk/system/general/src/test/java/org/wamblee/system/DefaultRequiredInterfaceTest.java @@ -0,0 +1,23 @@ +package org.wamblee.system; + +import junit.framework.TestCase; + +public class DefaultRequiredInterfaceTest extends TestCase { + + public void testEquals() { + assertEquals( + new DefaultRequiredInterface("a", String.class), + new DefaultRequiredInterface("a", String.class)); + assertEquals( + new DefaultRequiredInterface("a", new Class[]{ String.class, Integer.class}), + new DefaultRequiredInterface("a", new Class[]{ String.class, Integer.class})); + + assertFalse( + new DefaultRequiredInterface("a", String.class).equals( + new DefaultRequiredInterface("a", Integer.class))); + assertFalse( + new DefaultRequiredInterface("a", new Class[]{ String.class}).equals( + new DefaultRequiredInterface("a", new Class[]{ String.class, Integer.class}))); + + } +}