Skip to content

Commit

Permalink
Merge pull request #198 from ARUS2023/remove-unnecessary-stubbings-2
Browse files Browse the repository at this point in the history
Removed 1 unnecessary stubbing in CommentCommandTest.java
  • Loading branch information
jimklimov authored Oct 9, 2023
2 parents 1b460b3 + 520b696 commit 89448bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/test/java/hudson/plugins/im/bot/CommentCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public void testUnknownBuildNumber() throws CommandException {
@SuppressWarnings("rawtypes")
AbstractProject project = mock(AbstractProject.class);
AbstractBuild<?, ?> build = mock(AbstractBuild.class);
when(project.getBuildByNumber(4711)).thenReturn(build);

CommentCommand command = new CommentCommand();
command.getMessageForJob(project, new Sender("kutzi"),
new String[] { "4712", "my comment"}).toString();
Expand Down

0 comments on commit 89448bd

Please sign in to comment.