Examples of queryArtifacts()


Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

        // Test expected values.
        assertEquals( "archiva-test-module", actualArtifact.getArtifactId() );
        assertEquals( "changed", actualArtifact.getModel().getOrigin() );

        // Test that only 1 object is saved.
        assertEquals( 1, artiDao.queryArtifacts( null ).size() );

        // Delete object.
        artiDao.deleteArtifact( actualArtifact );
        assertEquals( 0, artiDao.queryArtifacts( null ).size() );
    }
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

        // Test that only 1 object is saved.
        assertEquals( 1, artiDao.queryArtifacts( null ).size() );

        // Delete object.
        artiDao.deleteArtifact( actualArtifact );
        assertEquals( 0, artiDao.queryArtifacts( null ).size() );
    }
}
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

        archivaDao.setArtifactDao( dao );

        for ( String v : versions )
        {
            ArtifactsRelatedConstraint c = new ArtifactsRelatedConstraint( groupId, artifactId, v );
            dao.queryArtifacts( c );
            control.setReturnValue( Collections.singletonList( createArtifact( groupId, artifactId, v ) ) );
        }

        control.replay();
        return control;
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

            repoStatistics.setDateOfScan( repoContentStat.getWhenGathered() );
               
            try
            {
                //TODO use the repo content stats whenGathered date instead of endDate for single repo reports
                List<ArchivaArtifact> types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, JAR_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setJarCount( types.size() );
               
                types = artifactDao.queryArtifacts(
                        new ArtifactsByRepositoryConstraint( repository, WAR_TYPE, endDate, "whenGathered" ) );
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

                //TODO use the repo content stats whenGathered date instead of endDate for single repo reports
                List<ArchivaArtifact> types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, JAR_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setJarCount( types.size() );
               
                types = artifactDao.queryArtifacts(
                        new ArtifactsByRepositoryConstraint( repository, WAR_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setWarCount( types.size() );
               
                types = artifactDao.queryArtifacts(
                        new ArtifactsByRepositoryConstraint( repository, MAVEN_PLUGIN, endDate, "whenGathered" ) );
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

               
                types = artifactDao.queryArtifacts(
                        new ArtifactsByRepositoryConstraint( repository, WAR_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setWarCount( types.size() );
               
                types = artifactDao.queryArtifacts(
                        new ArtifactsByRepositoryConstraint( repository, MAVEN_PLUGIN, endDate, "whenGathered" ) );
                repoStatistics.setPluginCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, EAR_TYPE, endDate, "whenGathered" ) );
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

               
                types = artifactDao.queryArtifacts(
                        new ArtifactsByRepositoryConstraint( repository, MAVEN_PLUGIN, endDate, "whenGathered" ) );
                repoStatistics.setPluginCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, EAR_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setEarCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, DLL_TYPE, endDate, "whenGathered" ) );
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, EAR_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setEarCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, DLL_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setDllCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, EXE_TYPE, endDate, "whenGathered" ) );
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, DLL_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setDllCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, EXE_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setExeCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, ZIP_TYPE, endDate, "whenGathered" ) );
View Full Code Here

Examples of org.apache.maven.archiva.database.ArtifactDAO.queryArtifacts()

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, EXE_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setExeCount( types.size() );

                types = artifactDao.queryArtifacts(
                         new ArtifactsByRepositoryConstraint( repository, ZIP_TYPE, endDate, "whenGathered" ) );
                repoStatistics.setZipCount( types.size() );
                // TODO: must need to be able to track archetypes. possible way of identifying an
                //      archetype is by checking if archetype.xml exists in src/main/resources/META-INF/
               
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.