Examples of LuceneRepositoryContentIndexStub


Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

        throws Exception
    {
        super.setUp();

        Map<String, RepositoryContentIndex> map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub() );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub() );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub() );
       
        repoPurge =
            new DaysOldRepositoryPurge( getRepository(), dao, getRepoConfiguration().getDaysOlder(), map );
    }
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

        throws Exception
    {
        super.setUp();

        Map<String, RepositoryContentIndex> map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub() );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub() );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub() );
       
        MetadataTools metadataTools = (MetadataTools) lookup( MetadataTools.class );
       
        repoPurge = new CleanupReleasedSnapshotsRepositoryPurge( getRepository(), dao, metadataTools, map );
    }
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

        throws Exception
    {
        super.setUp();

        Map<String, RepositoryContentIndex> map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub() );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub() );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub() );
       
        repoPurge = new RetentionCountRepositoryPurge( getRepository(), dao,
                                                       getRepoConfiguration().getRetentionCount(), map );
    }
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

    public void testByLastModified()
        throws Exception
    {
        map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub( 2 ) );

        repoPurge =
            new DaysOldRepositoryPurge( getRepository(), dao, getRepoConfiguration().getDaysOlder(),
                                        getRepoConfiguration().getRetentionCount(), map );
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

    public void testOrderOfDeletion()
        throws Exception
    {
        map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub( 2 ) );

        repoPurge =
            new DaysOldRepositoryPurge( getRepository(), dao, getRepoConfiguration().getDaysOlder(),
                                        getRepoConfiguration().getRetentionCount(), map );
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

    public void testMetadataDrivenSnapshots()
        throws Exception
    {
        map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub( 2 ) );

        repoPurge =
            new DaysOldRepositoryPurge( getRepository(), dao, getRepoConfiguration().getDaysOlder(),
                                        getRepoConfiguration().getRetentionCount(), map );
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

        throws Exception
    {
        super.setUp();

        Map<String, RepositoryContentIndex> map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub( 2 ) );
       
        repoPurge = new RetentionCountRepositoryPurge( getRepository(), dao,
                                                       getRepoConfiguration().getRetentionCount(), map );
    }
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

    public void testByLastModified()
        throws Exception
    {       
        map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub( 2 ) );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub( 2 ) );       
       
        repoPurge =
            new DaysOldRepositoryPurge( getRepository(), dao, getRepoConfiguration().getDaysOlder(),
                            getRepoConfiguration().getRetentionCount(), map );
       
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

    public void testMetadataDrivenSnapshots()
        throws Exception
    {
        map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub(2) );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub(2) );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub(2) );   
       
        repoPurge =
            new DaysOldRepositoryPurge( getRepository(), dao, getRepoConfiguration().getDaysOlder(),
                            getRepoConfiguration().getRetentionCount(), map );
       
View Full Code Here

Examples of org.apache.maven.archiva.consumers.core.repository.stubs.LuceneRepositoryContentIndexStub

        throws Exception
    {
        super.setUp();

        Map<String, RepositoryContentIndex> map = new HashMap<String, RepositoryContentIndex>();
        map.put( "filecontent", new LuceneRepositoryContentIndexStub() );
        map.put( "hashcodes", new LuceneRepositoryContentIndexStub() );
        map.put( "bytecode", new LuceneRepositoryContentIndexStub() );
       
        MetadataTools metadataTools = (MetadataTools) lookup( MetadataTools.class );
       
        repoPurge = new CleanupReleasedSnapshotsRepositoryPurge( getRepository(), dao, metadataTools, map );
    }
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.