Package org.apache.maven.archiva.configuration

Examples of org.apache.maven.archiva.configuration.LegacyArtifactPath


                int count = 0;
                for ( Iterator iter = value.getLegacyArtifactPaths().iterator(); iter.hasNext(); count++ )
                {
                    String name = "legacyArtifactPaths.legacyArtifactPath(" + count + ")";
                    LegacyArtifactPath o = ( LegacyArtifactPath ) iter.next();
                    writeLegacyArtifactPath( prefix + name + ".", o, registry );
                }
            }
            if ( value.getRepositoryScanning() != null
)
View Full Code Here


        value.setNetworkProxies( networkProxies );
        java.util.List legacyArtifactPaths = new java.util.ArrayList/*<LegacyArtifactPath>*/();
        List legacyArtifactPathsSubsets = registry.getSubsetList( prefix + "legacyArtifactPaths.legacyArtifactPath" );
        for ( Iterator i = legacyArtifactPathsSubsets.iterator(); i.hasNext(); )
        {
            LegacyArtifactPath v = readLegacyArtifactPath( "", (Registry) i.next() );
            legacyArtifactPaths.add( v );
        }
        value.setLegacyArtifactPaths( legacyArtifactPaths );
        RepositoryScanningConfiguration repositoryScanning = readRepositoryScanningConfiguration( prefix + "repositoryScanning.", registry );
        value.setRepositoryScanning( repositoryScanning );
View Full Code Here

        return value;
    }
   
    private LegacyArtifactPath readLegacyArtifactPath( String prefix, Registry registry )
    {
        LegacyArtifactPath value = new LegacyArtifactPath();

        String path = registry.getString( prefix + "path", value.getPath() );
        value.setPath( path );
        String artifact = registry.getString( prefix + "artifact", value.getArtifact() );
        value.setArtifact( artifact );

        return value;
    }
View Full Code Here

        value.setNetworkProxies( networkProxies );
        java.util.List legacyArtifactPaths = new java.util.ArrayList();
        List legacyArtifactPathsSubsets = registry.getSubsetList( prefix + "legacyArtifactPaths.legacyArtifactPath" );
        for ( Iterator i = legacyArtifactPathsSubsets.iterator(); i.hasNext(); )
        {
            LegacyArtifactPath v = readLegacyArtifactPath( "", (Registry) i.next() );
            legacyArtifactPaths.add( v );
        }
        value.setLegacyArtifactPaths( legacyArtifactPaths );
        RepositoryScanningConfiguration repositoryScanning = readRepositoryScanningConfiguration( prefix + "repositoryScanning.", registry );
        value.setRepositoryScanning( repositoryScanning );
View Full Code Here

        return value;
    }
   
    private LegacyArtifactPath readLegacyArtifactPath( String prefix, Registry registry )
    {
        LegacyArtifactPath value = new LegacyArtifactPath();

        String path = registry.getString( prefix + "path", value.getPath() );
        value.setPath( path );
        String artifact = registry.getString( prefix + "artifact", value.getArtifact() );
        value.setArtifact( artifact );

        return value;
    }
View Full Code Here

    }

    public void testStruts2ValidationFrameworkWithNullInputs() throws Exception
    {
        // prep
        LegacyArtifactPath legacyArtifactPath = createLegacyArtifactPath(null);
        populateAddLegacyArtifactPathActionFields(addLegacyArtifactPathAction, legacyArtifactPath, null, null, null, null, null);

        // test
        actionValidatorManager.validate(addLegacyArtifactPathAction, EMPTY_STRING);
View Full Code Here

    }

    public void testStruts2ValidationFrameworkWithBlankInputs() throws Exception
    {
        // prep
        LegacyArtifactPath legacyArtifactPath = createLegacyArtifactPath(EMPTY_STRING);
        populateAddLegacyArtifactPathActionFields(addLegacyArtifactPathAction, legacyArtifactPath, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING);

        // test
        actionValidatorManager.validate(addLegacyArtifactPathAction, EMPTY_STRING);
View Full Code Here

    }

    public void testStruts2ValidationFrameworkWithInvalidInputs() throws Exception
    {
        // prep
        LegacyArtifactPath legacyArtifactPath = createLegacyArtifactPath(LEGACY_ARTIFACT_PATH_PATH_INVALID_INPUT);
        populateAddLegacyArtifactPathActionFields(addLegacyArtifactPathAction, legacyArtifactPath, GROUP_ID_INVALID_INPUT, ARTIFACT_ID_INVALID_INPUT, VERSION_INVALID_INPUT, CLASSIFIER_INVALID_INPUT, TYPE_INVALID_INPUT);

        // test
        actionValidatorManager.validate(addLegacyArtifactPathAction, EMPTY_STRING);
View Full Code Here

    }

    public void testStruts2ValidationFrameworkWithValidInputs() throws Exception
    {
        // prep
        LegacyArtifactPath legacyArtifactPath = createLegacyArtifactPath(LEGACY_ARTIFACT_PATH_PATH_VALID_INPUT);
        populateAddLegacyArtifactPathActionFields(addLegacyArtifactPathAction, legacyArtifactPath, GROUP_ID_VALID_INPUT, ARTIFACT_ID_VALID_INPUT, VERSION_VALID_INPUT, CLASSIFIER_VALID_INPUT, TYPE_VALID_INPUT);

        // test
        actionValidatorManager.validate(addLegacyArtifactPathAction, EMPTY_STRING);
View Full Code Here

        assertFalse(addLegacyArtifactPathAction.hasFieldErrors());
    }

    private LegacyArtifactPath createLegacyArtifactPath(String path)
    {
        LegacyArtifactPath legacyArtifactPath = new LegacyArtifactPath();
        legacyArtifactPath.setPath(path);
        return legacyArtifactPath;
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.archiva.configuration.LegacyArtifactPath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.