Created
July 11, 2019 14:12
-
-
Save donchan922/7b9fb202f518287399f4346f450cca55 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
List mockedList = mock(List.class); | |
Mockito.doNothing().doNothing().doThrow(new RuntimeException()).when(mockedList).clear(); | |
mockedList.clear(); | |
mockedList.clear(); | |
mockedList.clear(); // RuntimeException発生 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment