-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MockMaker API cleanup #1868
MockMaker API cleanup #1868
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1868 +/- ##
============================================
+ Coverage 80.38% 80.44% +0.06%
- Complexity 4316 4335 +19
============================================
Files 439 441 +2
Lines 13518 13529 +11
Branches 1709 1705 -4
============================================
+ Hits 10867 10884 +17
+ Misses 2011 2007 -4
+ Partials 640 638 -2 ☔ View full report in Codecov by Sentry. |
spock-core/src/main/java/org/spockframework/mock/runtime/MockCreationSettings.java
Outdated
Show resolved
Hide resolved
spock-core/src/main/java/org/spockframework/mock/runtime/MockMakerRegistry.java
Outdated
Show resolved
Hide resolved
* @param id the mock maker ID. | ||
* @return the settings object | ||
*/ | ||
static IMockMakerSettings simple(MockMakerId id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking some more about it, I'm not happy with the simple
name.
It suggests that we are configuring some kind of simple
mock maker.
Maybe a forId
or builtIn
would be more precise. Or, we should lift the anonymous class to a top-level named IdOnlySettings
and remove the static method here, as we don't want users to use this method directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich have changed the name to settingsFor()
.
...cs/src/test/groovy/org/spockframework/mock/runtime/ByteBuddyMockFactoryConcurrentSpec.groovy
Outdated
Show resolved
Hide resolved
...-specs/src/test/groovy/org/spockframework/smoke/mock/InvokingMocksFromMultipleThreads.groovy
Outdated
Show resolved
Hide resolved
spock-specs/src/test/groovy/org/spockframework/smoke/mock/JavaStubs.groovy
Show resolved
Hide resolved
spock-specs/src/test/groovy/org/spockframework/smoke/mock/JavaStubs.groovy
Show resolved
Hide resolved
618db32
to
585c67e
Compare
Moved MockMakerId to spock.mock package. Added release notes for mock maker feature. Try to ease flaky InvokingMocksFromMultipleThreads spec PollingConditions change: Fix failing test when tests are executed with non english locale. The formatting of the elapsedTime would not match the pattern in the test. Co-authored-by: Leonard Brünings <[email protected]>
585c67e
to
dfc4a2c
Compare
Moved MockMakerId to spock.mock package.
Added release notes for mock maker feature.
Try to ease flaky InvokingMocksFromMultipleThreads spec
PollingConditions change: Fix failing test when tests are executed with non english locale.
The formatting of the elapsedTime would not match the pattern in the test.