0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

spock テスト設計で超絶役に立つマニュアル

Last updated at Posted at 2020-11-28

結論から申し上げるとGitHubにありました。
リンクが切れたり、GitHubアカウントが消されることも懸念して、時間があるときにこの記事に写しますmm

staticメソッドってMock化できるの?

spock使い方わからない

って人は見てみるとよさげです(´ω`)

ちなみに、

Mockitoを使用してプライベートメソッドをモックすることはできません。しかし、明示的な必要性がある場合は、PowerMockを試してみることができます。

パブリックメソッドのテストを書くときにカバーされるので、プライベートメソッドのテストを書くことはそもそも期待されていません。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?