Examples of MergeRepositoriesService


Examples of org.apache.archiva.rest.api.services.MergeRepositoriesService

    @Test
    public void getMergeConflictedArtifacts()
        throws Exception
    {
        MergeRepositoriesService service = getMergeRepositoriesService( authorizationHeader );

        List<Artifact> artifactMetadatas = service.getMergeConflictedArtifacts( TEST_REPOSITORY + "-stage",
                                                                                TEST_REPOSITORY );

        log.info( "conflicts: {}", artifactMetadatas );

        assertThat( artifactMetadatas ).isNotNull().isNotEmpty().hasSize( 8 );
View Full Code Here

Examples of org.apache.archiva.rest.api.services.MergeRepositoriesService

            "org/apache/felix/org.apache.felix.bundlerepository/1.6.4/org.apache.felix.bundlerepository-1.6.4.pom";

        assertTrue( new File( repoStage, mergedArtifactPath ).exists() );
        assertTrue( new File( repoStage, mergedArtifactPomPath ).exists() );

        MergeRepositoriesService service = getMergeRepositoriesService( authorizationHeader );

        service.mergeRepositories( TEST_REPOSITORY + "-stage", TEST_REPOSITORY, true );

        assertTrue( new File( repo, mergedArtifactPath ).exists() );
        assertTrue( new File( repo, mergedArtifactPomPath ).exists() );
    }
View Full Code Here

Examples of org.apache.archiva.rest.api.services.MergeRepositoriesService

        try
        {

            createStagedNeededRepo( testRepoId, repo.getAbsolutePath(), true );

            MergeRepositoriesService service = getMergeRepositoriesService( authorizationHeader );

            List<Artifact> artifactMetadatas = service.getMergeConflictedArtifacts( testRepoId + "-stage", testRepoId );

            log.info( "conflicts: {}", artifactMetadatas );

            assertThat( artifactMetadatas ).isNotNull().isNotEmpty().hasSize( 8 );
View Full Code Here

Examples of org.apache.archiva.rest.api.services.MergeRepositoriesService

                "org/apache/felix/org.apache.felix.bundlerepository/1.6.4/org.apache.felix.bundlerepository-1.6.4.pom";

            assertTrue( new File( repoStage, mergedArtifactPath ).exists() );
            assertTrue( new File( repoStage, mergedArtifactPomPath ).exists() );

            MergeRepositoriesService service = getMergeRepositoriesService( authorizationHeader );

            service.mergeRepositories( testRepoId + "-stage", testRepoId, true );

            assertTrue( new File( repo, mergedArtifactPath ).exists() );
            assertTrue( new File( repo, mergedArtifactPomPath ).exists() );

        }
View Full Code Here

Examples of org.apache.archiva.rest.api.services.MergeRepositoriesService

        try
        {

            createStagedNeededRepo( testRepoId, repo.getAbsolutePath(), true );

            MergeRepositoriesService service = getMergeRepositoriesService( authorizationHeader );

            List<Artifact> artifactMetadatas = service.getMergeConflictedArtifacts( testRepoId + "-stage", testRepoId );

            log.info( "conflicts: {}", artifactMetadatas );

            Assertions.assertThat( artifactMetadatas ).isNotNull().isNotEmpty().hasSize( 8 );
View Full Code Here

Examples of org.apache.archiva.rest.api.services.MergeRepositoriesService

                "org/apache/felix/org.apache.felix.bundlerepository/1.6.4/org.apache.felix.bundlerepository-1.6.4.pom";

            assertTrue( new File( repoStage, mergedArtifactPath ).exists() );
            assertTrue( new File( repoStage, mergedArtifactPomPath ).exists() );

            MergeRepositoriesService service = getMergeRepositoriesService( authorizationHeader );

            service.mergeRepositories( testRepoId + "-stage", testRepoId, true );

            assertTrue( new File( repo, mergedArtifactPath ).exists() );
            assertTrue( new File( repo, mergedArtifactPomPath ).exists() );

        }
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.