Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid incorrect configuration
  • Loading branch information
EgorkaKulikov committed Oct 7, 2022
commit 339bd6436ba4b0411171a954b8b950435c8fedee
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ data class TestFrameworkConfiguration(
// junit4 doesn't support parametrized tests
if (testFramework == Junit4 && parametrizedTestSource == ParametrizedTestSource.PARAMETRIZE) return true

//if we do not use mocks at all, we do not use static mocking too
if (mockStrategy == NO_MOCKS && staticsMocking == MockitoStaticMocking) return true

// if we want to generate mocks for every class but CUT, we must have specified staticsMocking
if (mockStrategy == OTHER_CLASSES && staticsMocking == NoStaticMocking) return true

Expand Down