CVS: jcontainer/dna/tools/src/test/org/jcontainer/dna/tools/verifier ActionListenerComponent.java,NONE,1.1 ComponentVerifierTestCase.java,1.7,1.8 IncompatibleLifecycles.java,1.1,NONE

Peter Donald <pdonald-yCVjj/[email protected]>
Newsgroups gmane.comp.java.jcontainer.cvs
Message-ID <[email protected]>
Update of /cvsroot/jcontainer/jcontainer/dna/tools/src/test/org/jcontainer/dna/tools/verifier
In directory hogshead.codehaus.org:/tmp/cvs-serv26277/tools/src/test/org/jcontainer/dna/tools/verifier

Modified Files:
	ComponentVerifierTestCase.java 
Added Files:
	ActionListenerComponent.java 
Removed Files:
	IncompatibleLifecycles.java 
Log Message:
Remove Parameters and Parameterizable from framework with the aim of simplifying usage patterns


--- NEW FILE: ActionListenerComponent.java ---
/*
 * Copyright (C) The Spice Group. All rights reserved.
 *
 * This software is published under the terms of the Spice
 * Software License version 1.1, a copy of which has been included
 * with this distribution in the LICENSE.txt file.
 */
package org.jcontainer.dna.tools.verifier;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
 * @version $Revision: 1.1 $ $Date: 2003/10/29 22:36:21 $
 */
class ActionListenerComponent
    implements ActionListener
{
    public void actionPerformed( ActionEvent e )
    {
    }
}

Index: ComponentVerifierTestCase.java
===================================================================
RCS file: /cvsroot/jcontainer/jcontainer/dna/tools/src/test/org/jcontainer/dna/tools/verifier/ComponentVerifierTestCase.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ComponentVerifierTestCase.java	26 Oct 2003 07:08:13 -0000	1.7
+++ ComponentVerifierTestCase.java	29 Oct 2003 22:36:21 -0000	1.8
@@ -195,26 +195,6 @@
                                    " must be an interface.", true, false );
     }
 
-    public void testVerifyLifecyclesThatPasses()
-        throws Exception
-    {
-        final ComponentVerifier verifier = new ComponentVerifier();
-        final List issues = new ArrayList();
-        verifier.verifyLifecycles( Object.class, issues );
-        assertNoIssues( issues );
-    }
-
-    public void testVerifyLifecyclesThatNoPasses()
-        throws Exception
-    {
-        final ComponentVerifier verifier = new ComponentVerifier();
-        final List issues = new ArrayList();
-        verifier.verifyLifecycles( IncompatibleLifecycles.class, issues );
-        assertSingleIssue( issues, "The class can not implement both " +
-                                   "Configurable and Parameterizable " +
-                                   "lifecycle interfaces.", true, false );
-    }
-
     public void testVerifyClass()
         throws Exception
     {
@@ -239,7 +219,7 @@
         final ComponentVerifier verifier = new ComponentVerifier();
         final List issues = new ArrayList();
         final Class[] services = new Class[]{ActionListener.class};
-        verifier.verifyImplementsServices( IncompatibleLifecycles.class, services, issues );
+        verifier.verifyImplementsServices( ActionListenerComponent.class, services, issues );
         assertNoIssues( issues );
     }
 

--- IncompatibleLifecycles.java DELETED ---
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.