Package org.apache.archiva.webtest.memory

Examples of org.apache.archiva.webtest.memory.TestMetadataResolver


        throws Exception
    {
        super.setUp();
        setObservableRepos( Lists.<String>newArrayList( "test-repo" ) );
        action = (BrowseAction) getActionProxy( "/browse.action" ).getAction();
        metadataResolver = new TestMetadataResolver();
        RepositorySession repositorySession = mock( RepositorySession.class );
        when( repositorySession.getResolver() ).thenReturn( metadataResolver );
        TestRepositorySessionFactory factory =
            applicationContext.getBean( "repositorySessionFactory#test", TestRepositorySessionFactory.class );
        factory.setRepositorySession( repositorySession );
View Full Code Here


        ArchivaConfiguration archivaConfiguration = applicationContext.getBean( ArchivaConfiguration.class );
        archivaConfiguration.save( configuration );

        artifactFactory = plexusSisuBridge.lookup( ArtifactFactory.class );

        TestMetadataResolver metadataResolver = applicationContext.getBean( TestMetadataResolver.class );
        ProjectVersionMetadata metadata = new ProjectVersionMetadata();
        metadata.setId( TEST_VERSION );
        metadataResolver.setProjectVersion( TEST_REPO_ID, TEST_GROUP_ID, TEST_ARTIFACT_ID, metadata );

        RepositorySession repositorySession = mock( RepositorySession.class );
        when( repositorySession.getResolver() ).thenReturn( metadataResolver );
        TestRepositorySessionFactory repositorySessionFactory =
            applicationContext.getBean( TestRepositorySessionFactory.class );
View Full Code Here

        throws Exception
    {
        super.setUp();
        action = (ShowArtifactAction) getActionProxy( "/showArtifact.action" ).getAction();

        metadataResolver = new TestMetadataResolver();
        MetadataRepository repo = mock( MetadataRepository.class );
        RepositorySession repositorySession = mock( RepositorySession.class );
        when( repositorySession.getResolver() ).thenReturn( metadataResolver );
        when( repositorySession.getRepository() ).thenReturn( repo );
        TestRepositorySessionFactory repositorySessionFactory =
View Full Code Here

        throws Exception
    {
        super.setUp();
        setObservableRepos( Lists.<String>newArrayList( "test-repo" ) );
        action = (BrowseAction) getActionProxy( "/browse.action" ).getAction();
        metadataResolver = new TestMetadataResolver();
        RepositorySession repositorySession = mock( RepositorySession.class );
        when( repositorySession.getResolver() ).thenReturn( metadataResolver );
        TestRepositorySessionFactory factory =
            applicationContext.getBean( "repositorySessionFactory#test", TestRepositorySessionFactory.class );
        factory.setRepositorySession( repositorySession );
View Full Code Here

        ArchivaConfiguration archivaConfiguration = applicationContext.getBean( ArchivaConfiguration.class );
        archivaConfiguration.getConfiguration().setRepositoryScanning( new RepositoryScanningConfiguration() );
        archivaConfiguration.save( configuration );

        TestMetadataResolver metadataResolver = applicationContext.getBean( TestMetadataResolver.class );
        ProjectVersionMetadata metadata = new ProjectVersionMetadata();
        metadata.setId( TEST_VERSION );
        metadataResolver.setProjectVersion( TEST_REPO_ID, TEST_GROUP_ID, TEST_ARTIFACT_ID, metadata );

        RepositorySession repositorySession = mock( RepositorySession.class );
        when( repositorySession.getResolver() ).thenReturn( metadataResolver );
        TestRepositorySessionFactory repositorySessionFactory =
            applicationContext.getBean( TestRepositorySessionFactory.class );
View Full Code Here

        throws Exception
    {
        super.setUp();
        action = (ShowArtifactAction) getActionProxy( "/showArtifact.action" ).getAction();

        metadataResolver = new TestMetadataResolver();
        MetadataRepository repo = mock( MetadataRepository.class );
        RepositorySession repositorySession = mock( RepositorySession.class );
        when( repositorySession.getResolver() ).thenReturn( metadataResolver );
        when( repositorySession.getRepository() ).thenReturn( repo );
        TestRepositorySessionFactory repositorySessionFactory =
View Full Code Here

TOP

Related Classes of org.apache.archiva.webtest.memory.TestMetadataResolver

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.