Created
July 19, 2022 07:44
-
-
Save DominikMostek/9f92bc3f994aaa84d082844d4520aa15 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() { | |
Geometry mock = mock(Geometry.class); | |
doReturn(12.3).when(mock).tan(pi/2); | |
} | |
interface Geometry { | |
/** | |
* Must return null when x = pi/2 | |
**/ | |
Double tan(double x); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment