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() );
       
        MetadataTools metadataTools = (MetadataTools) lookup( MetadataTools.class );
        RepositoryContentFactory factory = (RepositoryContentFactory) lookup( RepositoryContentFactory.class, "cleanup-released-snapshots");
       
        archivaConfiguration =
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( TEST_REPO_ID, TEST_REPO_NAME ).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( TEST_REPO_ID, TEST_REPO_NAME ).getDaysOlder(),
                                        getRepoConfiguration( TEST_REPO_ID, TEST_REPO_NAME ).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( TEST_REPO_ID, TEST_REPO_NAME ).getDaysOlder(),
                                        getRepoConfiguration( TEST_REPO_ID, TEST_REPO_NAME ).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( TEST_REPO_ID, TEST_REPO_NAME ).getDaysOlder(),
                                        getRepoConfiguration( TEST_REPO_ID, TEST_REPO_NAME ).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 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
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.