Examples of RepositoryContentFactory


Examples of org.apache.archiva.repository.RepositoryContentFactory

    public void setUp()
        throws Exception
    {
        super.setUp();

        RepositoryContentFactory factory =
            applicationContext.getBean( "repositoryContentFactory#cleanup-released-snapshots",
                                        RepositoryContentFactory.class );

        archivaConfiguration =
            applicationContext.getBean( "archivaConfiguration#cleanup-released-snapshots", ArchivaConfiguration.class );
View Full Code Here

Examples of org.apache.archiva.repository.RepositoryContentFactory

        when( repositorySession.getRepository() ).thenReturn( repo );
        TestRepositorySessionFactory repositorySessionFactory =
            applicationContext.getBean( "repositorySessionFactory#test", TestRepositorySessionFactory.class );
        repositorySessionFactory.setRepositorySession( repositorySession );

        RepositoryContentFactory factory = mock( RepositoryContentFactory.class );

        action.setRepositoryFactory( factory );

        ManagedRepository config = new ManagedRepository();
        config.setId( TEST_REPO );
        config.setLocation( new File( "target/test-repo" ).getAbsolutePath() );

        ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
        content.setRepository( config );
        when( factory.getManagedRepositoryContent( TEST_REPO ) ).thenReturn( content );

        ArchivaConfiguration archivaConfig = mock( ArchivaConfiguration.class );

        Configuration configuration = new Configuration();
        configuration.addManagedRepository(
            new BeanReplicator().replicateBean( config, ManagedRepositoryConfiguration.class ) );
        when( archivaConfig.getConfiguration() ).thenReturn( configuration );

        when( factory.getArchivaConfiguration() ).thenReturn( archivaConfig );

    }
View Full Code Here

Examples of org.apache.archiva.repository.RepositoryContentFactory

    public void setUp()
        throws Exception
    {
        super.setUp();

        RepositoryContentFactory factory =
            applicationContext.getBean( "repositoryContentFactory#cleanup-released-snapshots",
                                        RepositoryContentFactory.class );

        archivaConfiguration =
            applicationContext.getBean( "archivaConfiguration#cleanup-released-snapshots", ArchivaConfiguration.class );
View Full Code Here

Examples of org.apache.archiva.repository.RepositoryContentFactory

    public void setUp()
        throws Exception
    {
        super.setUp();

        RepositoryContentFactory factory =
            applicationContext.getBean( "repositoryContentFactory#cleanup-released-snapshots",
                                        RepositoryContentFactory.class );

        archivaConfiguration =
            applicationContext.getBean( "archivaConfiguration#cleanup-released-snapshots", ArchivaConfiguration.class );
View Full Code Here

Examples of org.apache.archiva.repository.RepositoryContentFactory

    public void setUp()
        throws Exception
    {
        super.setUp();

        RepositoryContentFactory factory =
            applicationContext.getBean( "repositoryContentFactory#cleanup-released-snapshots",
                                        RepositoryContentFactory.class );

        archivaConfiguration =
            applicationContext.getBean( "archivaConfiguration#cleanup-released-snapshots", ArchivaConfiguration.class );
View Full Code Here

Examples of org.apache.archiva.repository.RepositoryContentFactory

        when( repositorySession.getRepository() ).thenReturn( repo );
        TestRepositorySessionFactory repositorySessionFactory =
            applicationContext.getBean( "repositorySessionFactory#test", TestRepositorySessionFactory.class );
        repositorySessionFactory.setRepositorySession( repositorySession );

        RepositoryContentFactory factory = mock( RepositoryContentFactory.class );

        action.setRepositoryFactory( factory );

        ManagedRepository config = new ManagedRepository();
        config.setId( TEST_REPO );
        config.setLocation( new File( "target/test-repo" ).getAbsolutePath() );

        ManagedRepositoryContent content = new ManagedDefaultRepositoryContent();
        content.setRepository( config );
        when( factory.getManagedRepositoryContent( TEST_REPO ) ).thenReturn( content );

        ArchivaConfiguration archivaConfig = mock( ArchivaConfiguration.class );

        Configuration configuration = new Configuration();
        configuration.addManagedRepository(
            new BeanReplicator().replicateBean( config, ManagedRepositoryConfiguration.class ) );
        when( archivaConfig.getConfiguration() ).thenReturn( configuration );

        when( factory.getArchivaConfiguration() ).thenReturn( archivaConfig );

    }
View Full Code Here

Examples of org.apache.maven.archiva.repository.RepositoryContentFactory

        throws Exception
    {
        super.setUp();
       
        MetadataTools metadataTools = (MetadataTools) lookup( MetadataTools.class );
        RepositoryContentFactory factory = (RepositoryContentFactory) lookup( RepositoryContentFactory.class, "cleanup-released-snapshots");
       
        archivaConfiguration =
            (ArchivaConfiguration) lookup( ArchivaConfiguration.class, "cleanup-released-snapshots" );

        listenerControl = MockControl.createControl( RepositoryListener.class );
View Full Code Here

Examples of org.apache.maven.archiva.repository.RepositoryContentFactory

        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 =
            (ArchivaConfiguration) lookup( ArchivaConfiguration.class, "cleanup-released-snapshots" );
               
        repoPurge =
View Full Code Here

Examples of org.apache.maven.archiva.repository.RepositoryContentFactory

        throws Exception
    {
        super.setUp();
       
        MetadataTools metadataTools = (MetadataTools) lookup( MetadataTools.class );
        RepositoryContentFactory factory = (RepositoryContentFactory) lookup( RepositoryContentFactory.class, "cleanup-released-snapshots");
       
        archivaConfiguration =
            (ArchivaConfiguration) lookup( ArchivaConfiguration.class, "cleanup-released-snapshots" );

        listenerControl = MockControl.createControl( RepositoryListener.class );
View Full Code Here

Examples of org.apache.maven.archiva.repository.RepositoryContentFactory

        throws Exception
    {
        super.setUp();
       
        MetadataTools metadataTools = (MetadataTools) lookup( MetadataTools.class );
        RepositoryContentFactory factory = (RepositoryContentFactory) lookup( RepositoryContentFactory.class, "cleanup-released-snapshots");
       
        archivaConfiguration =
            (ArchivaConfiguration) lookup( ArchivaConfiguration.class, "cleanup-released-snapshots" );

        listenerControl = MockControl.createControl( RepositoryListener.class );
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.