Package org.apache.maven.shared.release

Examples of org.apache.maven.shared.release.ReleaseManager


        File checkoutDirectory = getTestFile( "target/checkout" );
        releaseDescriptor.setCheckoutDirectory( checkoutDirectory.getAbsolutePath() );
        releaseDescriptor.setPerformGoals( "deploy site:stage-deploy" );
        releaseDescriptor.setAdditionalArguments( "-DaltDeploymentRepository=\"staging\"" );

        ReleaseManager mock = mock( ReleaseManager.class );
        mojo.setReleaseManager( mock );

        mojo.execute();

        verify( mock ).perform( eq( releaseDescriptor ), isA( ReleaseEnvironment.class ), isNull( List.class ), eq( false ) );
View Full Code Here


       
        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setWorkingDirectory( testFile.getParentFile().getAbsolutePath() );
        releaseDescriptor.setUpdateDependencies( false );
       
        ReleaseManager mock = mock( ReleaseManager.class );
        mojo.setReleaseManager( mock );

        // execute
        mojo.execute();
View Full Code Here

        };
        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setWorkingDirectory( testFile.getParentFile().getAbsolutePath() );
        releaseDescriptor.setUpdateDependencies( false );
       
        ReleaseManager mock = mock( ReleaseManager.class );
        doThrow( new ReleaseExecutionException( "..." ) ).when( mock ).prepare( eq( releaseDescriptor ),
                                                                                isA( ReleaseEnvironment.class ),
                                                                                isNull( List.class),
                                                                                eq( true ),
                                                                                eq( false ) );
View Full Code Here

        };
        ReleaseDescriptor releaseDescriptor = new ReleaseDescriptor();
        releaseDescriptor.setWorkingDirectory( testFile.getParentFile().getAbsolutePath() );
        releaseDescriptor.setUpdateDependencies( false );
       
        ReleaseManager mock = mock( ReleaseManager.class );
        ReleaseFailureException cause = new ReleaseFailureException( "..." );
        doThrow( cause ).when( mock ).prepare( eq( releaseDescriptor ),
                                               isA( ReleaseEnvironment.class ),
                                               isNull( List.class),
                                               eq( true ),
View Full Code Here

TOP

Related Classes of org.apache.maven.shared.release.ReleaseManager

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.