Package ut.com.atlassian.maven.plugins.jgitflow

Examples of ut.com.atlassian.maven.plugins.jgitflow.TestFinishExtension


        List<MavenProject> projects = createReactorProjects("release-projects", projectName);
        File projectRoot = projects.get(0).getBasedir();

        MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);

        TestFinishExtension extension = new TestFinishExtension();

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false)
           .setNoTag(true)
           .setAllowSnapshots(true)
View Full Code Here


        List<MavenProject> projects = createReactorProjects("release-projects", projectName);
        File projectRoot = projects.get(0).getBasedir();

        MavenSession session = new MavenSession(getContainer(), new Settings(), localRepository, null, null, null, projectRoot.getAbsolutePath(), new Properties(), new Properties(), null);

        TestFinishExtension extension = new TestFinishExtension();

        ReleaseContext ctx = new ReleaseContext(projectRoot);
        ctx.setInteractive(false)
           .setNoTag(true)
           .setAllowSnapshots(true)
           .setNoBuild(true)
           .setReleaseFinishExtension(extension);

        setupProjectsForMasterAndDevelop(projectRoot,projectName);

        FlowReleaseManager relman = getReleaseManager();
        relman.start(ctx, projects, session);
        relman.finish(ctx, projects, session);

        assertEquals("old version incorrect", "1.0", extension.getOldVersion());
        assertEquals("new version incorrect", "1.1", extension.getNewVersion());

    }
View Full Code Here

TOP

Related Classes of ut.com.atlassian.maven.plugins.jgitflow.TestFinishExtension

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.