Created
July 19, 2022 07:44
-
-
Save DominikMostek/c815b8f8b2e80e2f59e860b8006bbccf to your computer and use it in GitHub Desktop.
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
@Test | |
public void bar() { | |
ITest mock = mock(ITest.class); | |
doReturn(new BigDecimal(5)).when(mock).foo(1); | |
mock.foo(1L); | |
} | |
interface ITest { | |
String foo(Number x); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment