Skip to content

Commit 7b720fb

Browse files
committed
[JENKINS-72030] Adapt and add test
1 parent 435450a commit 7b720fb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,18 @@ public void appliesFilters() throws Exception {
427427

428428
@Test
429429
public void fetchActions() throws Exception {
430+
assertThat(
431+
navigator.fetchActions(Mockito.mock(SCMNavigatorOwner.class), null, null),
432+
Matchers.containsInAnyOrder(
433+
Matchers.is(
434+
new ObjectMetadataAction("CloudBeers, Inc.", null, "https://github.com/cloudbeers")),
435+
Matchers.is(new GitHubOrgMetadataAction((String) null)),
436+
Matchers.is(new GitHubLink("icon-github-logo", "https://github.com/cloudbeers"))));
437+
}
438+
439+
@Test
440+
public void fetchActionsWithAvatar() throws Exception {
441+
navigator.setEnableAvatar(true);
430442
assertThat(
431443
navigator.fetchActions(Mockito.mock(SCMNavigatorOwner.class), null, null),
432444
Matchers.containsInAnyOrder(

0 commit comments

Comments
 (0)