Examples of featurePublish()


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

        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        git.add().addFilepattern(junkFile.getName()).call();
        RevCommit commit = git.commit().setMessage("committing junk file").call();

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

        assertTrue(GitHelper.isMergedInto(remoteGit, commit, flow.getFeatureBranchPrefix() + "my-feature"));
        remoteGit.checkout().setName(flow.getFeatureBranchPrefix() + "my-feature").call();
       
        File remoteJunk = new File(remoteGit.getRepository().getWorkTree(),junkFile.getName());
View Full Code Here

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

        //create a new file
        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");

        flow.featurePublish("my-feature").call();
    }

    @Test(expected = DirtyWorkingTreeException.class)
    public void publishFeatureUnCommittedFile() throws Exception
    {
View Full Code Here

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

        //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();

        flow.featurePublish("my-feature").call();
    }

    @Test(expected = LocalBranchMissingException.class)
    public void publishFeatureWithMissingLocalBranch() throws Exception
    {
View Full Code Here

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

        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        git.add().addFilepattern(junkFile.getName()).call();
        git.commit().setMessage("committing junk file").call();

        flow.featurePublish("my-feature").call();
    }

    @Test(expected = RemoteBranchExistsException.class)
    public void publishFeatureWithExistingRemoteBranch() throws Exception
    {
View Full Code Here

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

        git.commit().setMessage("committing junk file").call();

        //manually add the feature branch to remote
        remoteGit.branchCreate().setName(flow.getFeatureBranchPrefix() + "my-feature").call();
       
        flow.featurePublish("my-feature").call();
    }
}
View Full Code Here

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

        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        git.add().addFilepattern(junkFile.getName()).call();
        RevCommit commit = git.commit().setMessage("committing junk file").call();

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

        assertTrue(GitHelper.isMergedInto(remoteGit, commit, flow.getFeatureBranchPrefix() + "my-feature"));
        remoteGit.checkout().setName(flow.getFeatureBranchPrefix() + "my-feature").call();
       
        File remoteJunk = new File(remoteGit.getRepository().getWorkTree(),junkFile.getName());
View Full Code Here

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

        //create a new file
        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");

        flow.featurePublish("my-feature").call();
    }

    @Test(expected = DirtyWorkingTreeException.class)
    public void publishFeatureUnCommittedFile() throws Exception
    {
View Full Code Here

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

        //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();

        flow.featurePublish("my-feature").call();
    }

    @Test(expected = LocalBranchMissingException.class)
    public void publishFeatureWithMissingLocalBranch() throws Exception
    {
View Full Code Here

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

        File junkFile = new File(git.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        git.add().addFilepattern(junkFile.getName()).call();
        git.commit().setMessage("committing junk file").call();

        flow.featurePublish("my-feature").call();
    }

    @Test(expected = RemoteBranchExistsException.class)
    public void publishFeatureWithExistingRemoteBranch() throws Exception
    {
View Full Code Here

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

        flow.git().commit().setMessage("committing junk file").call();

        //manually add the feature branch to remote
        remoteGit.branchCreate().setName(flow.getFeatureBranchPrefix() + "my-feature").call();
       
        flow.featurePublish("my-feature").call();
    }
}
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.