avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject cvs commit: avalon-sandbox/merlin/meta-tools/src/test/org/apache/avalon/meta MetaTestCase.java
Date Wed, 16 Apr 2003 14:21:14 GMT
leosimons    2003/04/16 07:21:14

  Modified:    merlin/meta-tools/src/test/org/apache/avalon/meta
                        MetaTestCase.java
  Log:
  optimize imports, remove unused stuff.
  
  Revision  Changes    Path
  1.2       +14 -16    avalon-sandbox/merlin/meta-tools/src/test/org/apache/avalon/meta/MetaTestCase.java
  
  Index: MetaTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/meta-tools/src/test/org/apache/avalon/meta/MetaTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MetaTestCase.java	29 Mar 2003 03:13:11 -0000	1.1
  +++ MetaTestCase.java	16 Apr 2003 14:21:14 -0000	1.2
  @@ -9,8 +9,6 @@
   package org.apache.avalon.meta;
   
   import java.io.File;
  -import java.util.List;
  -import java.util.ArrayList;
   
   import junit.framework.TestCase;
   import org.apache.avalon.meta.info.*;
  @@ -66,10 +64,10 @@
       }
   
      /**
  -    * Setup the qdox javadoc builder and the type and 
  -    * service builders, and scan the test directory for 
  -    * sources, resulting in the population of a type and 
  -    * service list that this test case will verify for 
  +    * Setup the qdox javadoc builder and the type and
  +    * service builders, and scan the test directory for
  +    * sources, resulting in the population of a type and
  +    * service list that this test case will verify for
       * integrity.
       *
       * @exception Exception if a setup error occurs
  @@ -83,10 +81,10 @@
       }
   
      /**
  -    * Scan the test directory for source files and build up the 
  +    * Scan the test directory for source files and build up the
       * qdox JavaSource defintions from which JavaClass defintions
       * are resolved.  If the class contains a avalon.version tag
  -    * then we build a Type or Service instance (class or interface 
  +    * then we build a Type or Service instance (class or interface
       * respectively, and add them to the type and service lists.
       *
       * @exception Exception if a build error occurs
  @@ -171,7 +169,7 @@
       }
   
      /**
  -    * Verify the integrity of the primary Service definitions for integrity 
  +    * Verify the integrity of the primary Service definitions for integrity
       * relative to the javadoc tag statements.
       *
       * @exception Exception if a verification error occurs
  @@ -185,7 +183,7 @@
       }
   
      /**
  -    * Verify the integrity of the secondary Service definitions for integrity 
  +    * Verify the integrity of the secondary Service definitions for integrity
       * relative to the javadoc tag statements.
       *
       * @exception Exception if a verification error occurs
  @@ -193,7 +191,7 @@
       public void testSecondaryService() throws Exception
       {
           Service service = m_secondaryService;
  -        assertTrue( 
  +        assertTrue(
             "version", service.getReference().getVersion().toString().equals( "0.1.0" ) );
           assertTrue( "classname", service.getClassname().equals( SECONDARY_S ) );
       }
  @@ -203,7 +201,7 @@
           Type type = m_primary;
           assertTrue( "version", type.getInfo().getVersion().toString().equals( "1.3.0" )
);
           assertTrue( "name", type.getInfo().getName().equals( "primary-component" ) );
  -        assertTrue( 
  +        assertTrue(
             "lifestyle", type.getInfo().getAttribute("urn:avalon:lifestyle").equals( "singleton"
) );
   
           ContextDescriptor context = m_primary.getContext();
  @@ -216,7 +214,7 @@
           else
           {
               assertTrue( entry.getKey().equals( "home" ) );
  -            assertTrue( entry.getType().equals( "java.io.File" ) ); 
  +            assertTrue( entry.getType().equals( "java.io.File" ) );
           }
       }
   
  @@ -228,7 +226,7 @@
           LoggerDescriptor[] loggers = type.getLoggers();
           if( loggers.length == 1 )
           {
  -            LoggerDescriptor logger = (LoggerDescriptor) loggers[0];
  +            LoggerDescriptor logger = loggers[0];
               if( !logger.getName().equals( "system" ) )
               {
                   assertTrue( "Logger name is not system", false );
  @@ -243,7 +241,7 @@
           DependencyDescriptor[] dependencies = type.getDependencies();
           if( dependencies.length == 1 )
           {
  -            DependencyDescriptor dep = (DependencyDescriptor) dependencies[0];
  +            DependencyDescriptor dep = dependencies[0];
               if( !dep.getReference().getClassname().equals( PRIMARY_S ) )
               {
                   assertTrue( "dependency classname", false );
  @@ -272,7 +270,7 @@
           ServiceDescriptor[] services = type.getServices();
           if( services.length == 1 )
           {
  -            ServiceDescriptor dep = (ServiceDescriptor) services[0];
  +            ServiceDescriptor dep = services[0];
               if( !dep.getReference().getClassname().equals( SECONDARY_S ) )
               {
                   assertTrue( "service classname: " + dep.getReference().getClassname(),
false );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message