(no commit message)
[utils] / system / general / src / test / java / org / wamblee / system / core / DefaultRequiredInterfaceTest.java
index 972897cc32e8844bb426dd1ba933e8193c213887..4be843a05f34d83cf5b8d4923f0e2fec074f5701 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2007 the original author or authors.
+ * Copyright 2005-2010 the original author or authors.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 package org.wamblee.system.core;
 
-import org.wamblee.system.core.DefaultRequiredInterface;
-import org.wamblee.system.core.RequiredInterface;
-
 import junit.framework.TestCase;
 
+/**
+ * 
+ * @author $author$
+ * @version $Revision$
+ */
 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})));
-               
-       }
-       
-       public void testCopy() { 
-           DefaultRequiredInterface required = new DefaultRequiredInterface("a", new Class[]{ String.class, Integer.class}, true);
-           RequiredInterface copy = required.copy(); 
-           assertTrue(copy instanceof DefaultRequiredInterface); 
-           assertEquals(required.getName(), copy.getName());
-           assertEquals(required.isOptional(), copy.isOptional()); 
-           assertEquals(required.toString(), copy.toString());
-       }
+    public void testEquals() {
+        assertFalse(new DefaultRequiredInterface("a", String.class)
+            .equals(new DefaultRequiredInterface("a", String.class)));
+    }
 }