Created
May 11, 2017 12:28
-
-
Save ymtky/55d131138e259dfe77aa6d8a2f0f2e52 to your computer and use it in GitHub Desktop.
JMockitのメモ
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
//モックを宣言 | |
@Mocked | |
Hoge hoge; | |
//フィールドへの差込み | |
Deencapsulation.setField(hoge, "field" ,"hugahuga"); | |
//メソッドへの差込み | |
when(hoge.get()).thenReturn("hugahuga")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment