Examples of featureStart()


Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();
        git.push().setRemote("origin").add("develop").call();

        FeatureFinishExtensionForTests extension = new FeatureFinishExtensionForTests();

        flow.featureStart(MY_FEATURE).setPush(true).call();

        //just in case
        assertEquals(flow.getFeatureBranchPrefix() + MY_FEATURE, git.getRepository().getBranch());

        //do a commit so we get a merge
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        git.push().setRemote("origin").add("develop").call();

        FeatureFinishExtensionForTests extension = new FeatureFinishExtensionForTests();
        extension.withException(BaseExtensionForTests.BEFORE_DEVELOP_CHECKOUT, ExtensionFailStrategy.ERROR);

        flow.featureStart(MY_FEATURE).setPush(true).call();

        //just in case
        assertEquals(flow.getFeatureBranchPrefix() + MY_FEATURE, git.getRepository().getBranch());

        //do a commit so we get a merge
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        git.push().setRemote("origin").add("develop").call();

        FeatureFinishExtensionForTests extension = new FeatureFinishExtensionForTests();
        extension.withException(BaseExtensionForTests.BEFORE_DEVELOP_CHECKOUT, ExtensionFailStrategy.WARN);

        flow.featureStart(MY_FEATURE).setPush(true).call();

        //just in case
        assertEquals(flow.getFeatureBranchPrefix() + MY_FEATURE, git.getRepository().getBranch());

        //do a commit so we get a merge
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

    {
        Git git = RepoUtil.createRepositoryWithMasterAndDevelop(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.featureStart("my-feature").call();

        //just in case
        assertEquals(flow.getFeatureBranchPrefix() + "my-feature", git.getRepository().getBranch());

        flow.featureFinish("my-feature").setKeepBranch(true).call();
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

    {
        Git git = RepoUtil.createRepositoryWithMasterAndDevelop(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.featureStart("my-feature").call();

        //create a new commit
        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        git.add().addFilepattern(junkFile.getName()).call();
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

    {
        Git git = RepoUtil.createRepositoryWithMasterAndDevelop(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.featureStart("my-feature").call();

        //create a new commit
        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        git.add().addFilepattern(junkFile.getName()).call();
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        git = Git.cloneRepository().setDirectory(newDir()).setURI("file://" + remoteGit.getRepository().getWorkTree().getPath()).call();

        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.featureStart("my-feature").call();

        //do a commit to the remote feature branch
        remoteGit.checkout().setName(flow.getFeatureBranchPrefix() + "my-feature");
        File junkFile = new File(remoteGit.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

    {
        Git git = RepoUtil.createRepositoryWithMasterAndDevelop(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.featureStart("my-feature").call();
       
        //go back to develop and do a commit
        git.checkout().setName(flow.getDevelopBranchName()).call();
        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "A");
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

    {
        Git git = RepoUtil.createRepositoryWithMasterAndDevelop(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.featureStart("my-feature").call();

        //go back to develop and do a commit
        git.checkout().setName(flow.getDevelopBranchName()).call();
        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "A");
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.git().checkout().setName(flow.getDevelopBranchName()).call();
        assertEquals(flow.getDevelopBranchName(), git.getRepository().getBranch());
       
        flow.featureStart("my-feature").call();

        assertEquals(flow.getFeatureBranchPrefix() + "my-feature", git.getRepository().getBranch());

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