(no commit message)
[utils] / system / general / src / test / java / org / wamblee / system / core / DefaultRequiredInterfaceTest.java
index a7abee5df9639cfb7163fb2de3cb6b6fca9590a9..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 testGetImplementation() { 
-               RequiredInterface required = new DefaultRequiredInterface("hello", String.class);
-               assertNull(required.getImplementation(String.class));
-       }
+    public void testEquals() {
+        assertFalse(new DefaultRequiredInterface("a", String.class)
+            .equals(new DefaultRequiredInterface("a", String.class)));
+    }
 }