Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JMockitのメモ
//モックを宣言
@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
You can’t perform that action at this time.