From eeb78c1f593f271f8ea1b4df046dc844a6122483 Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 4 Apr 2008 22:11:20 +0000 Subject: [PATCH] --- .../system/DefaultRequiredInterfaceTest.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 trunk/system/general/src/test/java/org/wamblee/system/DefaultRequiredInterfaceTest.java 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}))); + + } +} -- 2.31.1