ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/type/test TestRole.java
Date Sun, 09 Jun 2002 13:13:55 GMT
donaldp     2002/06/09 06:13:55

  Modified:    container/src/test/org/apache/myrmidon/components
                        AbstractComponentTest.java TestDataType.java
               container/src/test/org/apache/myrmidon/components/configurer/test
                        DefaultConfigurerTestCase.java MyRole1.java
                        ObjectToMyRole1Converter.java
               container/src/test/org/apache/myrmidon/components/deployer/test
                        DefaultDeployerTestCase.java TestConverter1.java
                        TestRole1.java
               container/src/test/org/apache/myrmidon/components/property/test
                        AbstractPropertyResolverTestCase.java
               container/src/test/org/apache/myrmidon/components/role/test
                        DefaultRoleManagerTestCase.java
               container/src/test/org/apache/myrmidon/components/type/test
                        TestRole.java
  Log:
  Update tests so that they work when ROLE strings refer to the ...... role rather than haphazardly
referring to role sometimes and shortNames at other times!
  
  Revision  Changes    Path
  1.45      +24 -9     jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/AbstractComponentTest.java
  
  Index: AbstractComponentTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/AbstractComponentTest.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- AbstractComponentTest.java	29 May 2002 06:42:26 -0000	1.44
  +++ AbstractComponentTest.java	9 Jun 2002 13:13:54 -0000	1.45
  @@ -13,9 +13,6 @@
   import java.util.Iterator;
   import java.util.List;
   import java.util.Map;
  -import org.apache.aut.converter.Converter;
  -import org.apache.aut.converter.ConverterFactory;
  -import org.apache.aut.converter.lib.SimpleConverterFactory;
   import org.apache.avalon.framework.activity.Initializable;
   import org.apache.avalon.framework.container.ContainerUtil;
   import org.apache.avalon.framework.context.Context;
  @@ -25,8 +22,12 @@
   import org.apache.avalon.framework.logger.Logger;
   import org.apache.avalon.framework.service.DefaultServiceManager;
   import org.apache.avalon.framework.service.Serviceable;
  +import org.apache.excalibur.converter.Converter;
  +import org.apache.excalibur.converter.ConverterFactory;
  +import org.apache.excalibur.converter.lib.SimpleConverterFactory;
   import org.apache.myrmidon.AbstractContainerTestCase;
   import org.apache.myrmidon.api.TaskContext;
  +import org.apache.myrmidon.components.builder.DefaultModelBuilder;
   import org.apache.myrmidon.components.configurer.DefaultConfigurer;
   import org.apache.myrmidon.components.converter.DefaultMasterConverter;
   import org.apache.myrmidon.components.deployer.DefaultDeployer;
  @@ -40,7 +41,7 @@
   import org.apache.myrmidon.components.role.DefaultRoleManager;
   import org.apache.myrmidon.components.type.DefaultTypeManager;
   import org.apache.myrmidon.components.workspace.DefaultTaskContext;
  -import org.apache.myrmidon.components.builder.DefaultModelBuilder;
  +import org.apache.myrmidon.interfaces.builder.ModelBuilder;
   import org.apache.myrmidon.interfaces.configurer.Configurer;
   import org.apache.myrmidon.interfaces.converter.ConverterRegistry;
   import org.apache.myrmidon.interfaces.deployer.Deployer;
  @@ -60,13 +61,12 @@
   import org.apache.myrmidon.interfaces.type.DefaultTypeFactory;
   import org.apache.myrmidon.interfaces.type.TypeManager;
   import org.apache.myrmidon.interfaces.type.TypeRegistry;
  -import org.apache.myrmidon.interfaces.builder.ModelBuilder;
   
   /**
    * A base class for tests for the default components.
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.44 $ $Date: 2002/05/29 06:42:26 $
  + * @version $Revision: 1.45 $ $Date: 2002/06/09 13:13:54 $
    */
   public abstract class AbstractComponentTest
       extends AbstractContainerTestCase
  @@ -190,9 +190,15 @@
               // Register some standard roles
               // Add some core roles
               final RoleRegistry roleRegistry = (RoleRegistry)getServiceManager().lookup(
RoleRegistry.ROLE );
  -            roleRegistry.addRole( new RoleInfo( Converter.ROLE, Converter.class ) );
  -            roleRegistry.addRole( new RoleInfo( ServiceFactory.ROLE, ServiceFactory.class
) );
  -            roleRegistry.addRole( new RoleInfo( PropertyResolver.ROLE, PropertyResolver.class
) );
  +
  +            RoleInfo info = new RoleInfo( "converter", Converter.class );
  +            roleRegistry.addRole( info );
  +
  +            info = new RoleInfo( "service-factory", ServiceFactory.class );
  +            roleRegistry.addRole( info );
  +
  +            info = new RoleInfo( "property-resolver", PropertyResolver.class );
  +            roleRegistry.addRole( info );
           }
   
           return m_serviceManager;
  @@ -281,6 +287,15 @@
           final RoleRegistry roleRegistry =
               (RoleRegistry)getServiceManager().lookup( RoleRegistry.ROLE );
           roleRegistry.addRole( roleInfo );
  +    }
  +
  +    protected String getShortName( final String role )
  +        throws Exception
  +    {
  +        final RoleManager manager =
  +            (RoleManager)getServiceManager().lookup( RoleManager.ROLE );
  +        final RoleInfo info = manager.getRoleByInterface( role );
  +        return info.getShortName();
       }
   
       /**
  
  
  
  1.4       +8 -1      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/TestDataType.java
  
  Index: TestDataType.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/TestDataType.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestDataType.java	22 May 2002 07:36:23 -0000	1.3
  +++ TestDataType.java	9 Jun 2002 13:13:54 -0000	1.4
  @@ -7,6 +7,8 @@
    */
   package org.apache.myrmidon.components;
   
  +import org.apache.myrmidon.interfaces.role.RoleInfo;
  +
   /**
    * Base class for those classes that can appear inside the build file
    * as stand alone data types.
  @@ -15,5 +17,10 @@
    */
   public interface TestDataType
   {
  -    String ROLE = "test-data-type";
  +    String ROLE = TestDataType.class.getName();
  +    String SHORTNAME = "test-data-type";
  +
  +    RoleInfo INFO =
  +        new RoleInfo( SHORTNAME, TestDataType.class );
  +
   }
  
  
  
  1.17      +8 -7      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/configurer/test/DefaultConfigurerTestCase.java
  
  Index: DefaultConfigurerTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/configurer/test/DefaultConfigurerTestCase.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- DefaultConfigurerTestCase.java	17 May 2002 07:43:47 -0000	1.16
  +++ DefaultConfigurerTestCase.java	9 Jun 2002 13:13:54 -0000	1.17
  @@ -9,9 +9,9 @@
   
   import java.util.HashMap;
   import java.util.Map;
  -import org.apache.aut.converter.lib.StringToIntegerConverter;
   import org.apache.avalon.excalibur.i18n.Resources;
   import org.apache.avalon.framework.ExceptionUtil;
  +import org.apache.excalibur.converter.lib.StringToIntegerConverter;
   import org.apache.myrmidon.api.TaskContext;
   import org.apache.myrmidon.api.metadata.ModelElement;
   import org.apache.myrmidon.api.metadata.ModelException;
  @@ -82,7 +82,7 @@
       protected Object createComponent( final String role, final Class defaultImpl )
           throws Exception
       {
  -        if( role.equals( Configurer.ROLE) )
  +        if( role.equals( Configurer.ROLE ) )
           {
               return new DefaultConfigurer();
           }
  @@ -413,7 +413,7 @@
           final Map attributes = new HashMap();
           attributes.put( RoleInfo.ATTRIBUTE_DEFAULT_TYPE, "default-type" );
           registerRole( new RoleInfo( "myrole1", MyRole1.class, attributes ) );
  -        registerType( "myrole1", "default-type", MyType1.class );
  +        registerType( MyRole1.ROLE, "default-type", MyType1.class );
   
           final ConfigTestInterfaceAdder test = new ConfigTestInterfaceAdder();
   
  @@ -497,8 +497,8 @@
   
           // Register incompatible types with the same name, as data-type and myrole1.
           registerRole( new RoleInfo( "myrole1", MyRole1.class ) );
  -        registerType( "myrole1", "my-type1", MyType1.class );
  -        registerRole( new RoleInfo( TestDataType.ROLE, TestDataType.class) );
  +        registerType( MyRole1.ROLE, "my-type1", MyType1.class );
  +        registerRole( TestDataType.INFO );
           registerType( TestDataType.ROLE, "my-type1", StringBuffer.class );
   
           final ConfigTestTypedAdderRole test = new ConfigTestTypedAdderRole();
  @@ -526,11 +526,12 @@
           child.setAttribute( "prop", "some value" );
           config.addChild( child );
   
  -        registerRole( new RoleInfo( TestDataType.ROLE, TestDataType.class) );
  +        registerRole( TestDataType.INFO );
           registerType( TestDataType.ROLE, "some-type", ConfigTestTypedAdderConversion.class
);
           registerConverter( ObjectToMyRole1Converter.class, Object.class, MyRole1.class
);
   
  -        final ConfigTestTypedAdderConversion test = new ConfigTestTypedAdderConversion();
  +        final ConfigTestTypedAdderConversion test =
  +            new ConfigTestTypedAdderConversion();
   
           // Configure the object
           configure( test, config );
  
  
  
  1.4       +2 -2      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/configurer/test/MyRole1.java
  
  Index: MyRole1.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/configurer/test/MyRole1.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MyRole1.java	24 Apr 2002 02:21:01 -0000	1.3
  +++ MyRole1.java	9 Jun 2002 13:13:54 -0000	1.4
  @@ -13,10 +13,10 @@
    * A basic interface to test configurer.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.3 $ $Date: 2002/04/24 02:21:01 $
  + * @version $Revision: 1.4 $ $Date: 2002/06/09 13:13:54 $
    */
   public interface MyRole1
       extends TestDataType
   {
  -    String ROLE = "myrole1";
  +    String ROLE = MyRole1.class.getName();
   }
  
  
  
  1.2       +3 -5      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/configurer/test/ObjectToMyRole1Converter.java
  
  Index: ObjectToMyRole1Converter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/configurer/test/ObjectToMyRole1Converter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ObjectToMyRole1Converter.java	17 Mar 2002 08:07:08 -0000	1.1
  +++ ObjectToMyRole1Converter.java	9 Jun 2002 13:13:54 -0000	1.2
  @@ -7,16 +7,14 @@
    */
   package org.apache.myrmidon.components.configurer.test;
   
  -import org.apache.aut.converter.AbstractConverter;
  -import org.apache.aut.converter.ConverterException;
  -import org.apache.myrmidon.components.configurer.test.MyRole1;
  -import org.apache.myrmidon.components.configurer.test.MyRole1Adaptor;
  +import org.apache.excalibur.converter.AbstractConverter;
  +import org.apache.excalibur.converter.ConverterException;
   
   /**
    * Converts from Object to MyRole1.
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.1 $ $Date: 2002/03/17 08:07:08 $
  + * @version $Revision: 1.2 $ $Date: 2002/06/09 13:13:54 $
    */
   public class ObjectToMyRole1Converter
       extends AbstractConverter
  
  
  
  1.15      +16 -11    jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/deployer/test/DefaultDeployerTestCase.java
  
  Index: DefaultDeployerTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/deployer/test/DefaultDeployerTestCase.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- DefaultDeployerTestCase.java	27 May 2002 02:17:46 -0000	1.14
  +++ DefaultDeployerTestCase.java	9 Jun 2002 13:13:54 -0000	1.15
  @@ -10,8 +10,8 @@
   import java.io.File;
   import java.util.HashMap;
   import java.util.Map;
  -import org.apache.aut.converter.Converter;
  -import org.apache.aut.converter.ConverterException;
  +import org.apache.excalibur.converter.Converter;
  +import org.apache.excalibur.converter.ConverterException;
   import org.apache.myrmidon.components.AbstractComponentTest;
   import org.apache.myrmidon.components.TestDataType;
   import org.apache.myrmidon.components.deployer.DefaultDeployer;
  @@ -20,11 +20,10 @@
   import org.apache.myrmidon.interfaces.deployer.TypeLibraryDeployer;
   import org.apache.myrmidon.interfaces.library.Library;
   import org.apache.myrmidon.interfaces.library.LibraryManager;
  -import org.apache.myrmidon.interfaces.role.RoleInfo;
  +import org.apache.myrmidon.interfaces.type.DefaultTypeFactory;
   import org.apache.myrmidon.interfaces.type.TypeException;
   import org.apache.myrmidon.interfaces.type.TypeFactory;
   import org.apache.myrmidon.interfaces.type.TypeManager;
  -import org.apache.myrmidon.interfaces.type.DefaultTypeFactory;
   
   /**
    * Test cases for the default deployer.
  @@ -55,7 +54,7 @@
           super.setUp();
           m_deployer = (Deployer)getServiceManager().lookup( Deployer.ROLE );
           m_converter = (Converter)getServiceManager().lookup( Converter.ROLE );
  -        registerRole( new RoleInfo( TestDataType.ROLE, TestDataType.class ) );
  +        registerRole( TestDataType.INFO );
       }
   
       /**
  @@ -65,7 +64,7 @@
       protected Object createComponent( final String role, final Class defaultImpl )
           throws Exception
       {
  -        if( role.equals( Deployer.ROLE) )
  +        if( role.equals( Deployer.ROLE ) )
           {
               return new DefaultDeployer();
           }
  @@ -81,11 +80,11 @@
       private TypeLibraryDeployer getTestDeployer()
           throws Exception
       {
  -        registerRole( new RoleInfo( TestDataType.ROLE, TestDataType.class ) );
  +        registerRole( TestDataType.INFO );
   
           final File file = getTestResource( "test.atl" );
           final LibraryManager libraryManager = (LibraryManager)getServiceManager().lookup(
LibraryManager.ROLE );
  -        final Library library = libraryManager.createLibrary( new File[] { file } );
  +        final Library library = libraryManager.createLibrary( new File[]{file} );
           return m_deployer.createDeployer( library, TEST_NAMESPACE );
       }
   
  @@ -98,7 +97,7 @@
   
           // Create the type definition
           final TypeFactory typeFactory = new DefaultTypeFactory( typeName, TestType1.class
);
  -        final TypeDefinition typeDef = new TypeDefinition( typeName, TestDataType.ROLE,
typeFactory );
  +        final TypeDefinition typeDef = new TypeDefinition( typeName, TestDataType.SHORTNAME,
typeFactory );
   
           // Make sure the test types have not been deployed.  Do this after
           // the deployer has been created
  @@ -124,8 +123,14 @@
           final Map typeDefAttrs = new HashMap();
           typeDefAttrs.put( TypeDefinition.ATTRIBUTE_SOURCE_CLASS, source );
           typeDefAttrs.put( TypeDefinition.ATTRIBUTE_DESTINATION_CLASS, destClass );
  -        final TypeFactory typeFactory = new DefaultTypeFactory( converterName, TestConverter1.class
);
  -        final TypeDefinition typeDef = new TypeDefinition( converterName, Converter.ROLE,
typeFactory, typeDefAttrs );
  +        final TypeFactory typeFactory =
  +            new DefaultTypeFactory( converterName,
  +                                    TestConverter1.class );
  +        final TypeDefinition typeDef =
  +            new TypeDefinition( converterName,
  +                                getShortName( Converter.ROLE ),
  +                                typeFactory,
  +                                typeDefAttrs );
   
           // Make sure the test types have not been deployed.  Do this after
           // the deployer has been created
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/deployer/test/TestConverter1.java
  
  Index: TestConverter1.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/deployer/test/TestConverter1.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestConverter1.java	17 Mar 2002 08:07:09 -0000	1.1
  +++ TestConverter1.java	9 Jun 2002 13:13:54 -0000	1.2
  @@ -7,8 +7,8 @@
    */
   package org.apache.myrmidon.components.deployer.test;
   
  -import org.apache.aut.converter.Converter;
  -import org.apache.aut.converter.ConverterException;
  +import org.apache.excalibur.converter.Converter;
  +import org.apache.excalibur.converter.ConverterException;
   
   /**
    * A test converter.
  
  
  
  1.3       +1 -1      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/deployer/test/TestRole1.java
  
  Index: TestRole1.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/deployer/test/TestRole1.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestRole1.java	24 Apr 2002 02:21:01 -0000	1.2
  +++ TestRole1.java	9 Jun 2002 13:13:54 -0000	1.3
  @@ -14,5 +14,5 @@
    */
   public interface TestRole1
   {
  -    String ROLE = "test-role1";
  +    String ROLE = TestRole1.class.getName();
   }
  
  
  
  1.12      +2 -2      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/property/test/AbstractPropertyResolverTestCase.java
  
  Index: AbstractPropertyResolverTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/property/test/AbstractPropertyResolverTestCase.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- AbstractPropertyResolverTestCase.java	26 Apr 2002 03:12:51 -0000	1.11
  +++ AbstractPropertyResolverTestCase.java	9 Jun 2002 13:13:54 -0000	1.12
  @@ -9,7 +9,7 @@
   
   import java.io.File;
   import java.util.Date;
  -import org.apache.aut.converter.lib.ObjectToStringConverter;
  +import org.apache.excalibur.converter.lib.ObjectToStringConverter;
   import org.apache.avalon.excalibur.i18n.Resources;
   import org.apache.myrmidon.api.TaskContext;
   import org.apache.myrmidon.api.TaskException;
  @@ -21,7 +21,7 @@
    * General-purpose property resolver test cases.
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.11 $ $Date: 2002/04/26 03:12:51 $
  + * @version $Revision: 1.12 $ $Date: 2002/06/09 13:13:54 $
    */
   public abstract class AbstractPropertyResolverTestCase
       extends AbstractComponentTest
  
  
  
  1.6       +10 -9     jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/role/test/DefaultRoleManagerTestCase.java
  
  Index: DefaultRoleManagerTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/role/test/DefaultRoleManagerTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DefaultRoleManagerTestCase.java	6 May 2002 09:29:44 -0000	1.5
  +++ DefaultRoleManagerTestCase.java	9 Jun 2002 13:13:54 -0000	1.6
  @@ -19,7 +19,7 @@
    * Test cases for the DefaultRoleManager.
    *
    * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
  - * @version $Revision: 1.5 $ $Date: 2002/05/06 09:29:44 $
  + * @version $Revision: 1.6 $ $Date: 2002/06/09 13:13:54 $
    */
   public class DefaultRoleManagerTestCase
       extends AbstractContainerTestCase
  @@ -50,19 +50,20 @@
           m_roleManager.addRole( origRole );
   
           // Lookup the role
  -        RoleInfo role = m_roleManager.getRole( roleName );
  +        RoleInfo role = m_roleManager.getRoleByShortName( roleName );
           assertTrue( origRole.equals( role ) );
   
           // Lookup the role by type
  -        role = m_roleManager.getRoleByImplementationClass( roleType );
  +        role = m_roleManager.getRoleByInterface( roleType.getName() );
           assertTrue( origRole.equals( role ) );
   
           // Lookup an unknown role
  -        RoleInfo unknownRole = m_roleManager.getRole( "unknown" );
  +        RoleInfo unknownRole = m_roleManager.getRoleByShortName( "unknown" );
           assertNull( unknownRole );
   
           // Lookup an unknown role
  -        unknownRole = m_roleManager.getRoleByImplementationClass( DefaultRoleManagerTestCase.class
);
  +        final String name = DefaultRoleManagerTestCase.class.getName();
  +        unknownRole = m_roleManager.getRoleByInterface( name );
           assertNull( unknownRole );
       }
   
  @@ -78,11 +79,11 @@
           final RoleManager roleManager = new DefaultRoleManager( m_roleManager );
   
           // Lookup by name
  -        RoleInfo roleInfo = roleManager.getRole( roleName );
  +        RoleInfo roleInfo = roleManager.getRoleByShortName( roleName );
           assertTrue( origRole.equals( roleInfo ) );
   
           // Lookup by type
  -        roleInfo = roleManager.getRoleByImplementationClass( roleType );
  +        roleInfo = roleManager.getRoleByInterface( roleType.getName() );
           assertTrue( origRole.equals( roleInfo ) );
       }
   
  @@ -106,11 +107,11 @@
           roleManager.addRole( overrideTypeRole );
   
           // Lookup role by name
  -        RoleInfo roleInfo = roleManager.getRole( roleName );
  +        RoleInfo roleInfo = roleManager.getRoleByShortName( roleName );
           assertTrue( overrideNameRole.equals( roleInfo ) );
   
           // Lookup role by type
  -        roleInfo = roleManager.getRoleByImplementationClass( roleType );
  +        roleInfo = roleManager.getRoleByInterface( roleType.getName() );
           assertTrue( overrideTypeRole.equals( roleInfo ) );
       }
   
  
  
  
  1.2       +2 -2      jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/type/test/TestRole.java
  
  Index: TestRole.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/test/org/apache/myrmidon/components/type/test/TestRole.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestRole.java	8 May 2002 04:10:27 -0000	1.1
  +++ TestRole.java	9 Jun 2002 13:13:55 -0000	1.2
  @@ -11,9 +11,9 @@
    * A role for testing the TypeManager
    *
    * @author <a href="mailto:darrell@apache.org">Darrell DeBoer</a>
  - * @version $Revision: 1.1 $ $Date: 2002/05/08 04:10:27 $
  + * @version $Revision: 1.2 $ $Date: 2002/06/09 13:13:55 $
    */
   public interface TestRole
   {
  -    String ROLE = "test-role";
  +    String ROLE = TestRole.class.getName();
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message