forked from mockito/mockito
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example failing test for issue mockito#2656
Example failing test for mockito#2656
- Loading branch information
1 parent
e5a06c5
commit 2f4701e
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
subprojects/junit-jupiter/src/test/java/org/mockitousage/ProductionCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.mockitousage; | ||
|
||
import java.util.function.Predicate; | ||
|
||
public class ProductionCode { | ||
|
||
@SuppressWarnings("ReturnValueIgnored") | ||
public static void simpleMethod(Predicate<String> mock, String argument) { | ||
mock.test(argument); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters