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
Replace com.google.common.base.Function (partly) #2121
Conversation
Are you making these changes by hand @pks-1981 ? You might want to have a look at these Guava recipes. I'm in the process of covering Optional there as well. |
Yes, only with my hands) I'm have more fun in doing it myself... |
That's fine as well; even more appreciative of contributions made that way; Let's hope it's merged quickly without conflicts then! |
requiredStates.addAll( | ||
stubMappings.stream().map(StubMapping::getNewScenarioState).collect(Collectors.toList())); | ||
|
||
return requiredStates.stream().filter(Objects::nonNull).collect(Collectors.toSet()); |
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.
Unfortunately, small changes in the order of the final collection.
AdminApiTest -> void getScenarios()
- assertThat(body, jsonPartEquals("scenarios[0].possibleStates", asList("2", "3", "Started")));
- assertThat(body, jsonPartEquals("scenarios[0].possibleStates", asList("Started", "2", "3")));
@timtebeek @tomakehurst waiting for review) |
@tomakehurst |
@pks-1981 I'm on holiday this week, so please bear with me. Appreciate you opening these, and I plan to review them soon. |
# Conflicts: # src/main/java/com/github/tomakehurst/wiremock/verification/diff/JUnitStyleDiffRenderer.java
# Conflicts: # src/main/java/com/github/tomakehurst/wiremock/standalone/JsonFileMappingsSource.java
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.
All changes look good to me though I mostly rely on CI
One test fails in a single configuration, likely to be a flaky one
|
|
Replace com.google.common.base.Function (partly)
For #2111