Package models

Examples of models.PullRequest


    @Test
    public void push() throws IOException, GitAPIException {
        // Given
        Project original = createProject("keesun", "test");
        PullRequest pullRequest = createPullRequest(original);
        new GitRepository(original).create();
        Repository repository = GitRepository.buildMergingRepository(pullRequest);
        // master에 commit 1 추가
        String fileName = "readme.md";
        String content = "hello 1";
View Full Code Here


    public void getRelatedAuthors() throws IOException, GitAPIException, LimitExceededException {
        FakeApplication app = support.Helpers.makeTestApplication();
        Helpers.start(app);

        Project project = createProject("yobi", "test");
        PullRequest pullRequest = createPullRequest(project);
        GitRepository gitRepository = new GitRepository(project);
        gitRepository.create();
        Repository repository = GitRepository.buildMergingRepository(pullRequest);

        // Given
View Full Code Here

        new Git(noneBareClone).checkout().setName(branchName).call();
        newCommit(original, noneBareClone, "README.md", "world", "second commit");
        GitRepository.push(noneBareClone, GitRepository.getGitDirectoryURL(original), featureBranchName, featureBranchName);

        // feature 브랜치에서 master 브랜치로 코드를 보낸다.
        final PullRequest pullRequest = createPullRequest(original);
        pullRequest.toProject = original;
        pullRequest.fromProject = original;
        pullRequest.toBranch = Constants.R_HEADS + Constants.MASTER;
        pullRequest.fromBranch = branchName;
View Full Code Here

        project.name = name;
        return project;
    }

    private PullRequest createPullRequest(Project project) {
        PullRequest pullRequest = new PullRequest();
        pullRequest.toProject = project;
        return pullRequest;
    }
View Full Code Here

TOP

Related Classes of models.PullRequest

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.