(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Fri, 4 Apr 2008 22:11:20 +0000 (22:11 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Fri, 4 Apr 2008 22:11:20 +0000 (22:11 +0000)
trunk/system/general/src/test/java/org/wamblee/system/DefaultRequiredInterfaceTest.java [new file with mode: 0644]

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 (file)
index 0000000..6a209b4
--- /dev/null
@@ -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})));
+               
+       }
+}