diff --git a/core/src/test/java/hudson/cli/ListJobsCommandTest.java b/core/src/test/java/hudson/cli/ListJobsCommandTest.java index f9ec5795e3..420de2a8c2 100644 --- a/core/src/test/java/hudson/cli/ListJobsCommandTest.java +++ b/core/src/test/java/hudson/cli/ListJobsCommandTest.java @@ -182,6 +182,7 @@ public class ListJobsCommandTest { final TopLevelItem item = mock(TopLevelItem.class); + when(item.getName()).thenReturn(name); when(item.getDisplayName()).thenReturn(name); return item;