use of io.jenkins.blueocean.blueocean_bitbucket_pipeline.model.BbOrg in project blueocean-plugin by jenkinsci.
the class BitbucketApiTest method getUserTeamUsingEmail.
@Test
public void getUserTeamUsingEmail() throws JsonProcessingException {
api = new BitbucketCloudApi(apiUrl, getMockedCredentials("x.y@gmail.com"));
BbOrg team = api.getOrg("vivekp7");
assertEquals("vivekp7", team.getKey());
assertEquals("Vivek Pandey", team.getName());
assertEquals("https://bitbucket.org/account/vivekp7/avatar/50/", team.getAvatar());
}
use of io.jenkins.blueocean.blueocean_bitbucket_pipeline.model.BbOrg in project blueocean-plugin by jenkinsci.
the class BitbucketApiTest method getTeam.
@Test
public void getTeam() throws JsonProcessingException {
BbOrg team = api.getOrg("vivektestteam");
assertEquals("vivektestteam", team.getKey());
assertEquals("Vivek's Team", team.getName());
assertEquals("https://bitbucket.org/account/vivektestteam/avatar/50/", team.getAvatar());
}
Aggregations