Browse Source

restyle via IDEA

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271627 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
22f32dcc7d
58 changed files with 130 additions and 156 deletions
  1. +2
    -2
      proposal/myrmidon/src/java/org/apache/antlib/core/StringToFileConverter.java
  2. +1
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/DefaultFileSet.java
  3. +2
    -2
      proposal/myrmidon/src/java/org/apache/antlib/vfile/FilteredFileList.java
  4. +1
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/ListFilesTask.java
  5. +3
    -3
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/AbstractNameFileSelector.java
  6. +3
    -3
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/AndFileSelector.java
  7. +0
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/BaseNameFileSelector.java
  8. +1
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/ExistenceFileSelector.java
  9. +3
    -3
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/IsEmptyFolderSelector.java
  10. +1
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/IsFileSelector.java
  11. +1
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/IsFolderSelector.java
  12. +0
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/NameFileSelector.java
  13. +2
    -2
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/NotFileSelector.java
  14. +3
    -3
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/OrFileSelector.java
  15. +0
    -1
      proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/UrlFileSelector.java
  16. +1
    -1
      proposal/myrmidon/src/java/org/apache/aut/vfs/provider/local/LocalFileSystemProvider.java
  17. +5
    -4
      proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java
  18. +0
    -2
      proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/NoSuchPropertyException.java
  19. +2
    -2
      proposal/myrmidon/src/java/org/apache/myrmidon/components/converter/DefaultMasterConverter.java
  20. +1
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/DefaultClassLoaderManager.java
  21. +2
    -2
      proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/DefaultDeployer.java
  22. +1
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/AspectAwareExecutor.java
  23. +2
    -4
      proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/role/RoleInfo.java
  24. +1
    -1
      proposal/myrmidon/src/java/org/apache/myrmidon/listeners/NoPrefixProjectListener.java
  25. +3
    -4
      proposal/myrmidon/src/test/org/apache/antlib/core/PropertyTest.java
  26. +1
    -1
      proposal/myrmidon/src/test/org/apache/antlib/vfile/CopyFilesTaskTest.java
  27. +10
    -13
      proposal/myrmidon/src/test/org/apache/aut/vfs/AbstractFileSystemTest.java
  28. +0
    -1
      proposal/myrmidon/src/test/org/apache/aut/vfs/AbstractWritableFileSystemTest.java
  29. +1
    -1
      proposal/myrmidon/src/test/org/apache/aut/zip/ZipEntryTest.java
  30. +3
    -3
      proposal/myrmidon/src/test/org/apache/myrmidon/AbstractMyrmidonTest.java
  31. +1
    -1
      proposal/myrmidon/src/test/org/apache/myrmidon/AbstractProjectTest.java
  32. +10
    -10
      proposal/myrmidon/src/test/org/apache/myrmidon/DependencyMetricsTest.java
  33. +0
    -2
      proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/ConfigTest4.java
  34. +0
    -2
      proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/ConfigTestMultiTypedAdder.java
  35. +1
    -1
      proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/ConfigTestPrimConvert.java
  36. +4
    -4
      proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java
  37. +4
    -4
      proposal/myrmidon/src/test/org/apache/myrmidon/components/deployer/DefaultDeployerTest.java
  38. +2
    -2
      proposal/myrmidon/src/test/org/apache/myrmidon/components/embeddor/DefaultEmbeddorTest.java
  39. +5
    -5
      proposal/myrmidon/src/test/org/apache/myrmidon/components/role/DefaultRoleManagerTest.java
  40. +1
    -1
      proposal/myrmidon/src/test/org/apache/myrmidon/components/service/InstantiatingServiceManagerTest.java
  41. +0
    -1
      proposal/myrmidon/src/test/org/apache/myrmidon/interfaces/type/TypeFactoryTest.java
  42. +3
    -4
      proposal/myrmidon/src/testcases/org/apache/antlib/core/PropertyTest.java
  43. +1
    -1
      proposal/myrmidon/src/testcases/org/apache/antlib/vfile/CopyFilesTaskTest.java
  44. +10
    -13
      proposal/myrmidon/src/testcases/org/apache/aut/vfs/AbstractFileSystemTest.java
  45. +0
    -1
      proposal/myrmidon/src/testcases/org/apache/aut/vfs/AbstractWritableFileSystemTest.java
  46. +1
    -1
      proposal/myrmidon/src/testcases/org/apache/aut/zip/ZipEntryTest.java
  47. +3
    -3
      proposal/myrmidon/src/testcases/org/apache/myrmidon/AbstractMyrmidonTest.java
  48. +1
    -1
      proposal/myrmidon/src/testcases/org/apache/myrmidon/AbstractProjectTest.java
  49. +10
    -10
      proposal/myrmidon/src/testcases/org/apache/myrmidon/DependencyMetricsTest.java
  50. +0
    -2
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTest4.java
  51. +0
    -2
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTestMultiTypedAdder.java
  52. +1
    -1
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTestPrimConvert.java
  53. +4
    -4
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java
  54. +4
    -4
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/deployer/DefaultDeployerTest.java
  55. +2
    -2
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/embeddor/DefaultEmbeddorTest.java
  56. +5
    -5
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/role/DefaultRoleManagerTest.java
  57. +1
    -1
      proposal/myrmidon/src/testcases/org/apache/myrmidon/components/service/InstantiatingServiceManagerTest.java
  58. +0
    -1
      proposal/myrmidon/src/testcases/org/apache/myrmidon/interfaces/type/TypeFactoryTest.java

+ 2
- 2
proposal/myrmidon/src/java/org/apache/antlib/core/StringToFileConverter.java View File

@@ -8,12 +8,12 @@
package org.apache.antlib.core;

import java.io.File;
import org.apache.aut.converter.AbstractConverter;
import org.apache.aut.converter.ConverterException;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.aut.converter.AbstractConverter;
import org.apache.aut.converter.ConverterException;

/**
* String to file converter


+ 1
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/DefaultFileSet.java View File

@@ -8,6 +8,7 @@
package org.apache.antlib.vfile;

import java.util.ArrayList;
import org.apache.antlib.vfile.selectors.AndFileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.aut.vfs.FileSystemException;
import org.apache.aut.vfs.FileType;
@@ -15,7 +16,6 @@ import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.selectors.AndFileSelector;

/**
* A file set, that contains those files under a directory that match


+ 2
- 2
proposal/myrmidon/src/java/org/apache/antlib/vfile/FilteredFileList.java View File

@@ -8,10 +8,10 @@
package org.apache.antlib.vfile;

import java.util.ArrayList;
import org.apache.antlib.vfile.selectors.AndFileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.selectors.AndFileSelector;

/**
* A file-list which filters another.
@@ -67,6 +67,6 @@ public class FilteredFileList
}
}

return (FileObject[])acceptedFiles.toArray( new FileObject[acceptedFiles.size() ] );
return (FileObject[])acceptedFiles.toArray( new FileObject[ acceptedFiles.size() ] );
}
}

+ 1
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/ListFilesTask.java View File

@@ -40,7 +40,7 @@ public class ListFilesTask
final FileObject[] files = m_files.listFiles( getContext() );
for( int i = 0; i < files.length; i++ )
{
FileObject file = files[i ];
FileObject file = files[ i ];
getLogger().info( file.toString() );
}
}


+ 3
- 3
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/AbstractNameFileSelector.java View File

@@ -7,7 +7,10 @@
*/
package org.apache.antlib.vfile.selectors;

import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.oro.text.GlobCompiler;
@@ -15,9 +18,6 @@ import org.apache.oro.text.regex.MalformedPatternException;
import org.apache.oro.text.regex.Pattern;
import org.apache.oro.text.regex.Perl5Compiler;
import org.apache.oro.text.regex.Perl5Matcher;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.antlib.vfile.FileSelector;

/**
* An abstract file selector that selects files based on name.


+ 3
- 3
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/AndFileSelector.java View File

@@ -8,10 +8,10 @@
package org.apache.antlib.vfile.selectors;

import java.util.ArrayList;
import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.FileSelector;

/**
* A file selector that performs an AND of nested selectors. Performs
@@ -46,8 +46,8 @@ public class AndFileSelector
{
for( int i = 0; i < m_selectors.size(); i++ )
{
final FileSelector fileSelector = (FileSelector)m_selectors.get(i );
if( ! fileSelector.accept( file, path, context ) )
final FileSelector fileSelector = (FileSelector)m_selectors.get( i );
if( !fileSelector.accept( file, path, context ) )
{
return false;
}


+ 0
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/BaseNameFileSelector.java View File

@@ -8,7 +8,6 @@
package org.apache.antlib.vfile.selectors;

import org.apache.aut.vfs.FileObject;
import org.apache.antlib.vfile.selectors.AbstractNameFileSelector;

/**
* A file selector that selects files based on their base-name.


+ 1
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/ExistenceFileSelector.java View File

@@ -7,11 +7,11 @@
*/
package org.apache.antlib.vfile.selectors;

import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.aut.vfs.FileSystemException;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.FileSelector;

/**
* A file selector that only selects files that exist.


+ 3
- 3
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/IsEmptyFolderSelector.java View File

@@ -9,8 +9,8 @@ package org.apache.antlib.vfile.selectors;

import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.aut.vfs.FileType;
import org.apache.aut.vfs.FileSystemException;
import org.apache.aut.vfs.FileType;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;

@@ -37,8 +37,8 @@ public class IsEmptyFolderSelector
try
{
return ( file.exists()
&& file.getType() == FileType.FOLDER
&& file.getChildren().length == 0 );
&& file.getType() == FileType.FOLDER
&& file.getChildren().length == 0 );
}
catch( FileSystemException e )
{


+ 1
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/IsFileSelector.java View File

@@ -7,12 +7,12 @@
*/
package org.apache.antlib.vfile.selectors;

import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.aut.vfs.FileSystemException;
import org.apache.aut.vfs.FileType;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.FileSelector;

/**
* A file selector which only selects files, not folders.


+ 1
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/IsFolderSelector.java View File

@@ -7,12 +7,12 @@
*/
package org.apache.antlib.vfile.selectors;

import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.aut.vfs.FileSystemException;
import org.apache.aut.vfs.FileType;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.FileSelector;

/**
* A file selector which only selects folders, not files.


+ 0
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/NameFileSelector.java View File

@@ -8,7 +8,6 @@
package org.apache.antlib.vfile.selectors;

import org.apache.aut.vfs.FileObject;
import org.apache.antlib.vfile.selectors.AbstractNameFileSelector;

/**
* A file selector that selects files based on their name.


+ 2
- 2
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/NotFileSelector.java View File

@@ -7,10 +7,10 @@
*/
package org.apache.antlib.vfile.selectors;

import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.FileSelector;

/**
* A file selector that negates a nested file selector.
@@ -46,6 +46,6 @@ public class NotFileSelector
{
throw new TaskException( "notfileselector.no-selector.error" );
}
return ! m_selector.accept( file, path, context );
return !m_selector.accept( file, path, context );
}
}

+ 3
- 3
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/OrFileSelector.java View File

@@ -8,10 +8,10 @@
package org.apache.antlib.vfile.selectors;

import java.util.ArrayList;
import org.apache.antlib.vfile.FileSelector;
import org.apache.aut.vfs.FileObject;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.antlib.vfile.FileSelector;

/**
* A file selector that performs an OR of nested selectors. Performs
@@ -46,7 +46,7 @@ public class OrFileSelector
{
for( int i = 0; i < m_selectors.size(); i++ )
{
final FileSelector fileSelector = (FileSelector)m_selectors.get(i );
final FileSelector fileSelector = (FileSelector)m_selectors.get( i );
if( fileSelector.accept( file, path, context ) )
{
return true;
@@ -54,6 +54,6 @@ public class OrFileSelector
}

// Return true if there are no selectors, false if there are
return (m_selectors.size() == 0);
return ( m_selectors.size() == 0 );
}
}

+ 0
- 1
proposal/myrmidon/src/java/org/apache/antlib/vfile/selectors/UrlFileSelector.java View File

@@ -8,7 +8,6 @@
package org.apache.antlib.vfile.selectors;

import org.apache.aut.vfs.FileObject;
import org.apache.antlib.vfile.selectors.AbstractNameFileSelector;

/**
* A file selector that selects files based on their URL.


+ 1
- 1
proposal/myrmidon/src/java/org/apache/aut/vfs/provider/local/LocalFileSystemProvider.java View File

@@ -7,6 +7,7 @@
*/
package org.apache.aut.vfs.provider.local;

import java.io.File;
import org.apache.aut.vfs.FileObject;
import org.apache.aut.vfs.FileSystemException;
import org.apache.aut.vfs.provider.AbstractFileSystemProvider;
@@ -14,7 +15,6 @@ import org.apache.aut.vfs.provider.DefaultFileName;
import org.apache.aut.vfs.provider.FileSystem;
import org.apache.aut.vfs.provider.FileSystemProvider;
import org.apache.aut.vfs.provider.ParsedUri;
import java.io.File;

/**
* A file system provider, which uses direct file access.


+ 5
- 4
proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java View File

@@ -415,7 +415,7 @@ public class DefaultConfigurer

// Convert the value to the appropriate type
final Class type = setter.getType();
if( ! type.isInstance( objValue ) )
if( !type.isInstance( objValue ) )
{
objValue = m_converter.convert( type, objValue, context );
}
@@ -478,7 +478,7 @@ public class DefaultConfigurer
configureObject( child, element, context );

// Convert the object, if necessary
if( ! type.isInstance( child ) )
if( !type.isInstance( child ) )
{
child = m_converter.convert( type, child, context );
}
@@ -540,7 +540,8 @@ public class DefaultConfigurer
// Map the expected type to a role. If found, instantiate the default
// type for that role
final RoleInfo roleInfo = m_roleManager.getRoleByType( type );
if( roleInfo != null ) {
if( roleInfo != null )
{
final String typeName = roleInfo.getDefaultType();
if( typeName != null )
{
@@ -582,7 +583,7 @@ public class DefaultConfigurer

// Use the generic 'data-type' role.
final TypeFactory factory = m_typeManager.getFactory( DataType.class );
if( ! factory.canCreate( name ) )
if( !factory.canCreate( name ) )
{
throw new NoSuchPropertyException();
}


+ 0
- 2
proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/NoSuchPropertyException.java View File

@@ -7,8 +7,6 @@
*/
package org.apache.myrmidon.components.configurer;



/**
* A marker exception that is thrown when an unknown property is encountered.
*


+ 2
- 2
proposal/myrmidon/src/java/org/apache/myrmidon/components/converter/DefaultMasterConverter.java View File

@@ -140,7 +140,7 @@ public class DefaultMasterConverter
ArrayList queue = new ArrayList();
queue.add( originalClass );

while( ! queue.isEmpty() )
while( !queue.isEmpty() )
{
Class clazz = (Class)queue.remove( 0 );

@@ -152,7 +152,7 @@ public class DefaultMasterConverter
final Class[] interfaces = clazz.getInterfaces();
for( int i = 0; i < interfaces.length; i++ )
{
queue.add( interfaces[i ] );
queue.add( interfaces[ i ] );
}

// Check if we can convert from current class to destination


+ 1
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/DefaultClassLoaderManager.java View File

@@ -24,9 +24,9 @@ import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.avalon.framework.activity.Initializable;
import org.apache.avalon.framework.logger.AbstractLogEnabled;
import org.apache.avalon.framework.service.Serviceable;
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;
import org.apache.myrmidon.interfaces.deployer.DeploymentException;
import org.apache.myrmidon.interfaces.extensions.ExtensionManager;



+ 2
- 2
proposal/myrmidon/src/java/org/apache/myrmidon/components/deployer/DefaultDeployer.java View File

@@ -145,7 +145,7 @@ public class DefaultDeployer
throws Exception
{
final String roleShorthand = definition.getRoleShorthand();
final String roleName = getRole( roleShorthand ).getName();
final String roleName = getRole( roleShorthand ).getName();
final String factoryClassName = definition.getFactoryClass();
handleType( deployment, ServiceFactory.class, roleName, factoryClassName );
}
@@ -277,7 +277,7 @@ public class DefaultDeployer
private RoleInfo getRole( final String roleShorthand )
throws DeploymentException
{
final RoleInfo roleInfo = m_roleManager.getRoleByShorthandName( roleShorthand );
final RoleInfo roleInfo = m_roleManager.getRoleByShorthandName( roleShorthand );
if( null == roleInfo )
{
final String message = REZ.getString( "unknown-role4name.error", roleShorthand );


+ 1
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/components/executor/AspectAwareExecutor.java View File

@@ -16,8 +16,8 @@ import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.configuration.DefaultConfiguration;
import org.apache.avalon.framework.logger.Logger;
import org.apache.avalon.framework.parameters.Parameters;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.myrmidon.api.Task;
import org.apache.myrmidon.api.TaskException;
import org.apache.myrmidon.interfaces.aspect.AspectManager;


+ 2
- 4
proposal/myrmidon/src/java/org/apache/myrmidon/interfaces/role/RoleInfo.java View File

@@ -7,8 +7,6 @@
*/
package org.apache.myrmidon.interfaces.role;



/**
* A role definition. Role definitions are immutable.
*
@@ -87,7 +85,7 @@ public final class RoleInfo
{
return false;
}
if( ! m_name.equals( role.m_name ) )
if( !m_name.equals( role.m_name ) )
{
return false;
}
@@ -95,7 +93,7 @@ public final class RoleInfo
{
return false;
}
if( m_shorthand != null && ! m_shorthand.equals( role.m_shorthand ) )
if( m_shorthand != null && !m_shorthand.equals( role.m_shorthand ) )
{
return false;
}


+ 1
- 1
proposal/myrmidon/src/java/org/apache/myrmidon/listeners/NoPrefixProjectListener.java View File

@@ -13,7 +13,7 @@ package org.apache.myrmidon.listeners;
* @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
* @version $Revision$ $Date$
* @ant:type type="listener" name="noprefix"
*/
*/
public class NoPrefixProjectListener
extends DefaultProjectListener
{


+ 3
- 4
proposal/myrmidon/src/test/org/apache/antlib/core/PropertyTest.java View File

@@ -12,7 +12,6 @@ import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.AbstractProjectTest;
import org.apache.myrmidon.LogMessageTracker;
import org.apache.myrmidon.components.configurer.DefaultConfigurer;

/**
* Test cases for <property> task.
@@ -42,17 +41,17 @@ public class PropertyTest

// Set by attribute
LogMessageTracker tracker = new LogMessageTracker();
tracker.addExpectedMessage( "set-attr", "test-prop = [some value]");
tracker.addExpectedMessage( "set-attr", "test-prop = [some value]" );
executeTarget( projectFile, "set-attr", tracker );

// Set by text content
tracker = new LogMessageTracker();
tracker.addExpectedMessage( "set-content", "test-prop2 = [some value]");
tracker.addExpectedMessage( "set-content", "test-prop2 = [some value]" );
executeTarget( projectFile, "set-content", tracker );

// Set by nested element
tracker = new LogMessageTracker();
tracker.addExpectedMessage( "set-element", "test-prop3 = [value=[some value]]");
tracker.addExpectedMessage( "set-element", "test-prop3 = [value=[some value]]" );
executeTarget( projectFile, "set-element", tracker );
}



+ 1
- 1
proposal/myrmidon/src/test/org/apache/antlib/vfile/CopyFilesTaskTest.java View File

@@ -7,8 +7,8 @@
*/
package org.apache.antlib.vfile;

import org.apache.myrmidon.AbstractProjectTest;
import java.io.File;
import org.apache.myrmidon.AbstractProjectTest;

/**
* Test cases for the <v-copy> task.


+ 10
- 13
proposal/myrmidon/src/test/org/apache/aut/vfs/AbstractFileSystemTest.java View File

@@ -9,14 +9,11 @@ package org.apache.aut.vfs;

import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
import org.apache.aut.vfs.impl.DefaultFileSystemManager;
import org.apache.myrmidon.AbstractMyrmidonTest;

@@ -203,21 +200,21 @@ public abstract class AbstractFileSystemTest
/**
* Checks that a relative name resolves to the expected absolute path.
*/
private void assertSameName(String expectedPath,
FileName baseName,
String relName ) throws Exception
private void assertSameName( String expectedPath,
FileName baseName,
String relName ) throws Exception
{
FileName name = baseName.resolveName(relName);
FileName name = baseName.resolveName( relName );
assertEquals( expectedPath, name.getPath() );

// Replace the separators
relName.replace('\\', '/');
name = baseName.resolveName(relName);
relName.replace( '\\', '/' );
name = baseName.resolveName( relName );
assertEquals( expectedPath, name.getPath() );

// And again
relName.replace('/', '\\');
name = baseName.resolveName(relName);
relName.replace( '/', '\\' );
name = baseName.resolveName( relName );
assertEquals( expectedPath, name.getPath() );
}

@@ -457,12 +454,12 @@ public abstract class AbstractFileSystemTest
// Test non-empty file
FileObject file = m_baseFolder.resolveFile( "file1.txt" );
FileContent content = file.getContent();
assertSameContent(m_charContent, content);
assertSameContent( m_charContent, content );

// Test empty file
file = m_baseFolder.resolveFile( "empty.txt" );
content = file.getContent();
assertSameContent("", content);
assertSameContent( "", content );
}

/**


+ 0
- 1
proposal/myrmidon/src/test/org/apache/aut/vfs/AbstractWritableFileSystemTest.java View File

@@ -7,7 +7,6 @@
*/
package org.apache.aut.vfs;

import java.io.Writer;
import java.io.OutputStream;
import java.util.HashSet;
import java.util.Set;


+ 1
- 1
proposal/myrmidon/src/test/org/apache/aut/zip/ZipEntryTest.java View File

@@ -7,8 +7,8 @@
*/
package org.apache.aut.zip;

import junit.framework.TestCase;
import java.util.NoSuchElementException;
import junit.framework.TestCase;

/**
* JUnit testcases ZipEntry.


+ 3
- 3
proposal/myrmidon/src/test/org/apache/myrmidon/AbstractMyrmidonTest.java View File

@@ -39,9 +39,9 @@ public abstract class AbstractMyrmidonTest
final String baseDirProp = System.getProperty( "test.basedir" );
m_baseDir = new File( baseDirProp );
String packagePath = getClass().getName();
int idx = packagePath.lastIndexOf('.');
packagePath = packagePath.substring(0, idx);
packagePath = packagePath.replace('.', File.separatorChar);
int idx = packagePath.lastIndexOf( '.' );
packagePath = packagePath.substring( 0, idx );
packagePath = packagePath.replace( '.', File.separatorChar );
m_testBaseDir = new File( m_baseDir, packagePath );
}



+ 1
- 1
proposal/myrmidon/src/test/org/apache/myrmidon/AbstractProjectTest.java View File

@@ -77,7 +77,7 @@ public class AbstractProjectTest
final String targetName,
final String message )
{
executeTargetExpectError( projectFile, targetName, new String[] { message } );
executeTargetExpectError( projectFile, targetName, new String[]{message} );
}

/**


+ 10
- 10
proposal/myrmidon/src/test/org/apache/myrmidon/DependencyMetricsTest.java View File

@@ -171,17 +171,17 @@ public class DependencyMetricsTest
* Make sure that antlib package does not have any
* unwanted dependencies.
*/
/*
public void testAntlibDecoupled()
{
final String packageName = "org.apache.antlib";
final String[] badEfferents = new String[]
/*
public void testAntlibDecoupled()
{
"org.apache.tools.ant"
};
doTestDecoupled( packageName, badEfferents );
}
*/
final String packageName = "org.apache.antlib";
final String[] badEfferents = new String[]
{
"org.apache.tools.ant"
};
doTestDecoupled( packageName, badEfferents );
}
*/
/**
* Make sure there are no circular dependencies between packages because
* circular dependencies are evil!!!


+ 0
- 2
proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/ConfigTest4.java View File

@@ -7,8 +7,6 @@
*/
package org.apache.myrmidon.components.configurer;



/**
* Simple class to test typed adder.
*


+ 0
- 2
proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/ConfigTestMultiTypedAdder.java View File

@@ -7,8 +7,6 @@
*/
package org.apache.myrmidon.components.configurer;



/**
* Simple class with more than one typed adder method.
*


+ 1
- 1
proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/ConfigTestPrimConvert.java View File

@@ -36,7 +36,7 @@ public class ConfigTestPrimConvert
{
return false;
}
if ( !AbstractComponentTest.equals( m_integerProp, test.m_integerProp ) )
if( !AbstractComponentTest.equals( m_integerProp, test.m_integerProp ) )
{
return false;
}


+ 4
- 4
proposal/myrmidon/src/test/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java View File

@@ -103,7 +103,7 @@ public class DefaultConfigurerTest
// Check result
final ConfigTestPrimConvert expected = new ConfigTestPrimConvert();
expected.setIntProp( 90 );
expected.setIntegerProp( new Integer(-401) );
expected.setIntegerProp( new Integer( -401 ) );
assertEquals( expected, test );
}

@@ -381,7 +381,7 @@ public class DefaultConfigurerTest
final ConfigTestInterfaceProp test = new ConfigTestInterfaceProp();

// Configure object
m_configurer.configure( test, config, m_context );
m_configurer.configure( test, config, m_context );

// Check result
final ConfigTestInterfaceProp expected = new ConfigTestInterfaceProp();
@@ -442,7 +442,7 @@ public class DefaultConfigurerTest
REZ.getString( "bad-configure-element.error", "test" ),
REZ.getString( "multiple-adder-methods-for-element.error",
ConfigTestMultiTypedAdder.class.getName(),
"")
"" )
};
assertSameMessage( messages, ce );
}
@@ -541,7 +541,7 @@ public class DefaultConfigurerTest
config.setAttribute( "my-role1", "some value" );

// Set up the converter and role
registerRole( new RoleInfo("my-role1", MyRole1.class ) );
registerRole( new RoleInfo( "my-role1", MyRole1.class ) );
registerConverter( ObjectToMyRole1Converter.class, String.class, MyRole1.class );

final ConfigTestTypedProp test = new ConfigTestTypedProp();


+ 4
- 4
proposal/myrmidon/src/test/org/apache/myrmidon/components/deployer/DefaultDeployerTest.java View File

@@ -69,13 +69,13 @@ public class DefaultDeployerTest
// Determine the shorthand for the DataType role

// Create the type definition
final TypeDefinition typeDef = new TypeDefinition( typeName, DATA_TYPE_ROLE, classname );
final TypeDefinition typeDef = new TypeDefinition( typeName, DATA_TYPE_ROLE, classname );

final ClassLoader classLoader = getClass().getClassLoader();
final TypeDeployer typeDeployer = m_deployer.createDeployer( classLoader );

// Make sure the test types have not been deployed
assertTypesNotRegistered( );
assertTypesNotRegistered();

// Deploy the type
typeDeployer.deployType( typeDef );
@@ -103,7 +103,7 @@ public class DefaultDeployerTest
final TypeDeployer typeDeployer = m_deployer.createDeployer( classLoader );

// Make sure the test types have not been deployed
assertTypesNotRegistered( );
assertTypesNotRegistered();

// Deploy the type
typeDeployer.deployType( typeDef );
@@ -176,7 +176,7 @@ public class DefaultDeployerTest
* Ensures the types from the test typelib descriptor have been correctly
* deployed.
*/
private void assertTypesRegistered( ) throws Exception
private void assertTypesRegistered() throws Exception
{
// Check the data-type
TypeFactory typeFactory = getTypeManager().getFactory( DataType.class );


+ 2
- 2
proposal/myrmidon/src/test/org/apache/myrmidon/components/embeddor/DefaultEmbeddorTest.java View File

@@ -50,11 +50,11 @@ public class DefaultEmbeddorTest

final Target implicitTarget = project.getImplicitTarget();
assertEquals( 1, implicitTarget.getTasks().length );
assertEquals( "property", implicitTarget.getTasks()[0].getName() );
assertEquals( "property", implicitTarget.getTasks()[ 0 ].getName() );

final Target target = project.getTarget( "main-target" );
assertEquals( 1, target.getTasks().length );
assertEquals( "log", target.getTasks()[0].getName() );
assertEquals( "log", target.getTasks()[ 0 ].getName() );
}

/**


+ 5
- 5
proposal/myrmidon/src/test/org/apache/myrmidon/components/role/DefaultRoleManagerTest.java View File

@@ -7,13 +7,13 @@
*/
package org.apache.myrmidon.components.role;

import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.AbstractMyrmidonTest;
import org.apache.myrmidon.api.Task;
import org.apache.myrmidon.interfaces.role.RoleManager;
import org.apache.myrmidon.interfaces.role.RoleInfo;
import org.apache.myrmidon.interfaces.role.RoleException;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.myrmidon.interfaces.role.RoleInfo;
import org.apache.myrmidon.interfaces.role.RoleManager;

/**
* Test cases for the DefaultRoleManager.
@@ -51,7 +51,7 @@ public class DefaultRoleManagerTest

// Lookup the role
RoleInfo role = m_roleManager.getRole( roleName );
assertTrue( origRole.equals(role) );
assertTrue( origRole.equals( role ) );

// Lookup the role by shorthand
role = m_roleManager.getRoleByShorthandName( shorthand );


+ 1
- 1
proposal/myrmidon/src/test/org/apache/myrmidon/components/service/InstantiatingServiceManagerTest.java View File

@@ -113,7 +113,7 @@ public class InstantiatingServiceManagerTest
{
// Make sure that hasService() works correctly
final String serviceRole = "some-unknown-service";
assertTrue( ! m_serviceManager.hasService( serviceRole ) );
assertTrue( !m_serviceManager.hasService( serviceRole ) );

// Make sure that lookup() fails
try


+ 0
- 1
proposal/myrmidon/src/test/org/apache/myrmidon/interfaces/type/TypeFactoryTest.java View File

@@ -9,7 +9,6 @@ package org.apache.myrmidon.interfaces.type;

import java.io.File;
import java.net.URL;
import junit.framework.TestCase;
import org.apache.myrmidon.AbstractMyrmidonTest;

/**


+ 3
- 4
proposal/myrmidon/src/testcases/org/apache/antlib/core/PropertyTest.java View File

@@ -12,7 +12,6 @@ import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.AbstractProjectTest;
import org.apache.myrmidon.LogMessageTracker;
import org.apache.myrmidon.components.configurer.DefaultConfigurer;

/**
* Test cases for <property> task.
@@ -42,17 +41,17 @@ public class PropertyTest

// Set by attribute
LogMessageTracker tracker = new LogMessageTracker();
tracker.addExpectedMessage( "set-attr", "test-prop = [some value]");
tracker.addExpectedMessage( "set-attr", "test-prop = [some value]" );
executeTarget( projectFile, "set-attr", tracker );

// Set by text content
tracker = new LogMessageTracker();
tracker.addExpectedMessage( "set-content", "test-prop2 = [some value]");
tracker.addExpectedMessage( "set-content", "test-prop2 = [some value]" );
executeTarget( projectFile, "set-content", tracker );

// Set by nested element
tracker = new LogMessageTracker();
tracker.addExpectedMessage( "set-element", "test-prop3 = [value=[some value]]");
tracker.addExpectedMessage( "set-element", "test-prop3 = [value=[some value]]" );
executeTarget( projectFile, "set-element", tracker );
}



+ 1
- 1
proposal/myrmidon/src/testcases/org/apache/antlib/vfile/CopyFilesTaskTest.java View File

@@ -7,8 +7,8 @@
*/
package org.apache.antlib.vfile;

import org.apache.myrmidon.AbstractProjectTest;
import java.io.File;
import org.apache.myrmidon.AbstractProjectTest;

/**
* Test cases for the <v-copy> task.


+ 10
- 13
proposal/myrmidon/src/testcases/org/apache/aut/vfs/AbstractFileSystemTest.java View File

@@ -9,14 +9,11 @@ package org.apache.aut.vfs;

import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
import org.apache.aut.vfs.impl.DefaultFileSystemManager;
import org.apache.myrmidon.AbstractMyrmidonTest;

@@ -203,21 +200,21 @@ public abstract class AbstractFileSystemTest
/**
* Checks that a relative name resolves to the expected absolute path.
*/
private void assertSameName(String expectedPath,
FileName baseName,
String relName ) throws Exception
private void assertSameName( String expectedPath,
FileName baseName,
String relName ) throws Exception
{
FileName name = baseName.resolveName(relName);
FileName name = baseName.resolveName( relName );
assertEquals( expectedPath, name.getPath() );

// Replace the separators
relName.replace('\\', '/');
name = baseName.resolveName(relName);
relName.replace( '\\', '/' );
name = baseName.resolveName( relName );
assertEquals( expectedPath, name.getPath() );

// And again
relName.replace('/', '\\');
name = baseName.resolveName(relName);
relName.replace( '/', '\\' );
name = baseName.resolveName( relName );
assertEquals( expectedPath, name.getPath() );
}

@@ -457,12 +454,12 @@ public abstract class AbstractFileSystemTest
// Test non-empty file
FileObject file = m_baseFolder.resolveFile( "file1.txt" );
FileContent content = file.getContent();
assertSameContent(m_charContent, content);
assertSameContent( m_charContent, content );

// Test empty file
file = m_baseFolder.resolveFile( "empty.txt" );
content = file.getContent();
assertSameContent("", content);
assertSameContent( "", content );
}

/**


+ 0
- 1
proposal/myrmidon/src/testcases/org/apache/aut/vfs/AbstractWritableFileSystemTest.java View File

@@ -7,7 +7,6 @@
*/
package org.apache.aut.vfs;

import java.io.Writer;
import java.io.OutputStream;
import java.util.HashSet;
import java.util.Set;


+ 1
- 1
proposal/myrmidon/src/testcases/org/apache/aut/zip/ZipEntryTest.java View File

@@ -7,8 +7,8 @@
*/
package org.apache.aut.zip;

import junit.framework.TestCase;
import java.util.NoSuchElementException;
import junit.framework.TestCase;

/**
* JUnit testcases ZipEntry.


+ 3
- 3
proposal/myrmidon/src/testcases/org/apache/myrmidon/AbstractMyrmidonTest.java View File

@@ -39,9 +39,9 @@ public abstract class AbstractMyrmidonTest
final String baseDirProp = System.getProperty( "test.basedir" );
m_baseDir = new File( baseDirProp );
String packagePath = getClass().getName();
int idx = packagePath.lastIndexOf('.');
packagePath = packagePath.substring(0, idx);
packagePath = packagePath.replace('.', File.separatorChar);
int idx = packagePath.lastIndexOf( '.' );
packagePath = packagePath.substring( 0, idx );
packagePath = packagePath.replace( '.', File.separatorChar );
m_testBaseDir = new File( m_baseDir, packagePath );
}



+ 1
- 1
proposal/myrmidon/src/testcases/org/apache/myrmidon/AbstractProjectTest.java View File

@@ -77,7 +77,7 @@ public class AbstractProjectTest
final String targetName,
final String message )
{
executeTargetExpectError( projectFile, targetName, new String[] { message } );
executeTargetExpectError( projectFile, targetName, new String[]{message} );
}

/**


+ 10
- 10
proposal/myrmidon/src/testcases/org/apache/myrmidon/DependencyMetricsTest.java View File

@@ -171,17 +171,17 @@ public class DependencyMetricsTest
* Make sure that antlib package does not have any
* unwanted dependencies.
*/
/*
public void testAntlibDecoupled()
{
final String packageName = "org.apache.antlib";
final String[] badEfferents = new String[]
/*
public void testAntlibDecoupled()
{
"org.apache.tools.ant"
};
doTestDecoupled( packageName, badEfferents );
}
*/
final String packageName = "org.apache.antlib";
final String[] badEfferents = new String[]
{
"org.apache.tools.ant"
};
doTestDecoupled( packageName, badEfferents );
}
*/
/**
* Make sure there are no circular dependencies between packages because
* circular dependencies are evil!!!


+ 0
- 2
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTest4.java View File

@@ -7,8 +7,6 @@
*/
package org.apache.myrmidon.components.configurer;



/**
* Simple class to test typed adder.
*


+ 0
- 2
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTestMultiTypedAdder.java View File

@@ -7,8 +7,6 @@
*/
package org.apache.myrmidon.components.configurer;



/**
* Simple class with more than one typed adder method.
*


+ 1
- 1
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTestPrimConvert.java View File

@@ -36,7 +36,7 @@ public class ConfigTestPrimConvert
{
return false;
}
if ( !AbstractComponentTest.equals( m_integerProp, test.m_integerProp ) )
if( !AbstractComponentTest.equals( m_integerProp, test.m_integerProp ) )
{
return false;
}


+ 4
- 4
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/DefaultConfigurerTest.java View File

@@ -103,7 +103,7 @@ public class DefaultConfigurerTest
// Check result
final ConfigTestPrimConvert expected = new ConfigTestPrimConvert();
expected.setIntProp( 90 );
expected.setIntegerProp( new Integer(-401) );
expected.setIntegerProp( new Integer( -401 ) );
assertEquals( expected, test );
}

@@ -381,7 +381,7 @@ public class DefaultConfigurerTest
final ConfigTestInterfaceProp test = new ConfigTestInterfaceProp();

// Configure object
m_configurer.configure( test, config, m_context );
m_configurer.configure( test, config, m_context );

// Check result
final ConfigTestInterfaceProp expected = new ConfigTestInterfaceProp();
@@ -442,7 +442,7 @@ public class DefaultConfigurerTest
REZ.getString( "bad-configure-element.error", "test" ),
REZ.getString( "multiple-adder-methods-for-element.error",
ConfigTestMultiTypedAdder.class.getName(),
"")
"" )
};
assertSameMessage( messages, ce );
}
@@ -541,7 +541,7 @@ public class DefaultConfigurerTest
config.setAttribute( "my-role1", "some value" );

// Set up the converter and role
registerRole( new RoleInfo("my-role1", MyRole1.class ) );
registerRole( new RoleInfo( "my-role1", MyRole1.class ) );
registerConverter( ObjectToMyRole1Converter.class, String.class, MyRole1.class );

final ConfigTestTypedProp test = new ConfigTestTypedProp();


+ 4
- 4
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/deployer/DefaultDeployerTest.java View File

@@ -69,13 +69,13 @@ public class DefaultDeployerTest
// Determine the shorthand for the DataType role

// Create the type definition
final TypeDefinition typeDef = new TypeDefinition( typeName, DATA_TYPE_ROLE, classname );
final TypeDefinition typeDef = new TypeDefinition( typeName, DATA_TYPE_ROLE, classname );

final ClassLoader classLoader = getClass().getClassLoader();
final TypeDeployer typeDeployer = m_deployer.createDeployer( classLoader );

// Make sure the test types have not been deployed
assertTypesNotRegistered( );
assertTypesNotRegistered();

// Deploy the type
typeDeployer.deployType( typeDef );
@@ -103,7 +103,7 @@ public class DefaultDeployerTest
final TypeDeployer typeDeployer = m_deployer.createDeployer( classLoader );

// Make sure the test types have not been deployed
assertTypesNotRegistered( );
assertTypesNotRegistered();

// Deploy the type
typeDeployer.deployType( typeDef );
@@ -176,7 +176,7 @@ public class DefaultDeployerTest
* Ensures the types from the test typelib descriptor have been correctly
* deployed.
*/
private void assertTypesRegistered( ) throws Exception
private void assertTypesRegistered() throws Exception
{
// Check the data-type
TypeFactory typeFactory = getTypeManager().getFactory( DataType.class );


+ 2
- 2
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/embeddor/DefaultEmbeddorTest.java View File

@@ -50,11 +50,11 @@ public class DefaultEmbeddorTest

final Target implicitTarget = project.getImplicitTarget();
assertEquals( 1, implicitTarget.getTasks().length );
assertEquals( "property", implicitTarget.getTasks()[0].getName() );
assertEquals( "property", implicitTarget.getTasks()[ 0 ].getName() );

final Target target = project.getTarget( "main-target" );
assertEquals( 1, target.getTasks().length );
assertEquals( "log", target.getTasks()[0].getName() );
assertEquals( "log", target.getTasks()[ 0 ].getName() );
}

/**


+ 5
- 5
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/role/DefaultRoleManagerTest.java View File

@@ -7,13 +7,13 @@
*/
package org.apache.myrmidon.components.role;

import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.myrmidon.AbstractMyrmidonTest;
import org.apache.myrmidon.api.Task;
import org.apache.myrmidon.interfaces.role.RoleManager;
import org.apache.myrmidon.interfaces.role.RoleInfo;
import org.apache.myrmidon.interfaces.role.RoleException;
import org.apache.avalon.excalibur.i18n.Resources;
import org.apache.avalon.excalibur.i18n.ResourceManager;
import org.apache.myrmidon.interfaces.role.RoleInfo;
import org.apache.myrmidon.interfaces.role.RoleManager;

/**
* Test cases for the DefaultRoleManager.
@@ -51,7 +51,7 @@ public class DefaultRoleManagerTest

// Lookup the role
RoleInfo role = m_roleManager.getRole( roleName );
assertTrue( origRole.equals(role) );
assertTrue( origRole.equals( role ) );

// Lookup the role by shorthand
role = m_roleManager.getRoleByShorthandName( shorthand );


+ 1
- 1
proposal/myrmidon/src/testcases/org/apache/myrmidon/components/service/InstantiatingServiceManagerTest.java View File

@@ -113,7 +113,7 @@ public class InstantiatingServiceManagerTest
{
// Make sure that hasService() works correctly
final String serviceRole = "some-unknown-service";
assertTrue( ! m_serviceManager.hasService( serviceRole ) );
assertTrue( !m_serviceManager.hasService( serviceRole ) );

// Make sure that lookup() fails
try


+ 0
- 1
proposal/myrmidon/src/testcases/org/apache/myrmidon/interfaces/type/TypeFactoryTest.java View File

@@ -9,7 +9,6 @@ package org.apache.myrmidon.interfaces.type;

import java.io.File;
import java.net.URL;
import junit.framework.TestCase;
import org.apache.myrmidon.AbstractMyrmidonTest;

/**


Loading…
Cancel
Save