public boolean matches( final Method method )
    {
        validateNotNull( method, "Method" );

        final RequiresConfiguration requiresConfigAnnotation = method.getAnnotation( RequiresConfiguration.class );
        final String[] requiredConfigs;
        if( requiresConfigAnnotation != null )
        {
            requiredConfigs = requiresConfigAnnotation.value();
        }
        else
        {
            requiredConfigs = new String[]{ ".*" };
        }
        for( String requiredConfig : requiredConfigs )
        {
            if( m_method.getName().matches( requiredConfig ) )
            {
                return true;
            }
        }
        return false;
    }
public boolean matches ( final Method method ) { validateNotNull ( method , "Method" ) ; final RequiresConfiguration requiresConfigAnnotation = method . getAnnotation ( RequiresConfiguration . class ) ; final String [ ] requiredConfigs ; if ( requiresConfigAnnotation != null ) { requiredConfigs = requiresConfigAnnotation . value ( ) ; } else { requiredConfigs = new String [ ] { ".*" } ; } for ( String requiredConfig : requiredConfigs ) { if ( m_method . getName ( ) . matches ( requiredConfig ) ) { return true ; } } return false ; }
Matches a test method name against this configuration method.

@param method test method name (cannot be null or empty)

@return true if the test method name matches the configuration method, false otherwise

@throws IllegalArgumentException - If method name is null or empty