Search in sources :

Example 1 with Project

use of org.sonar.alm.client.bitbucket.bitbucketcloud.Project in project sonarqube by SonarSource.

the class ImportBitbucketCloudRepoActionTest method getGsonBBCRepo.

private Repository getGsonBBCRepo() {
    Project project1 = new Project("PROJECT-UUID-ONE", "projectKey1", "projectName1");
    MainBranch mainBranch = new MainBranch("branch", "develop");
    return new Repository("REPO-UUID-ONE", "repo-slug-1", "repoName1", project1, mainBranch);
}
Also used : Project(org.sonar.alm.client.bitbucket.bitbucketcloud.Project) Repository(org.sonar.alm.client.bitbucket.bitbucketcloud.Repository) MainBranch(org.sonar.alm.client.bitbucket.bitbucketcloud.MainBranch)

Example 2 with Project

use of org.sonar.alm.client.bitbucket.bitbucketcloud.Project in project sonarqube by SonarSource.

the class SearchBitbucketCloudReposActionTest method getBBCRepo2.

private Repository getBBCRepo2() {
    Project project2 = new Project("PROJECT-UUID-TWO", "projectKey2", "projectName2");
    Repository repo2 = new Repository("REPO-UUID-TWO", "repo-slug-2", "repoName2", project2, null);
    return repo2;
}
Also used : Project(org.sonar.alm.client.bitbucket.bitbucketcloud.Project) Repository(org.sonar.alm.client.bitbucket.bitbucketcloud.Repository)

Aggregations

Project (org.sonar.alm.client.bitbucket.bitbucketcloud.Project)2 Repository (org.sonar.alm.client.bitbucket.bitbucketcloud.Repository)2 MainBranch (org.sonar.alm.client.bitbucket.bitbucketcloud.MainBranch)1