Fixes #3331 : Fix AdditionalMatchers.and() and AdditionalMatchers.or() not to swap the order of matchers#3335
Merged
TimvdLippe merged 1 commit intomockito:mainfrom May 11, 2024
Merged
Conversation
TimvdLippe
requested changes
May 8, 2024
Contributor
Author
|
I midified the code based on your feedback, can you check it? The test code works like this and
or
|
TimvdLippe
approved these changes
May 11, 2024
Contributor
TimvdLippe
left a comment
There was a problem hiding this comment.
This looks great, thank you so much!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3335 +/- ##
============================================
+ Coverage 85.33% 85.35% +0.02%
- Complexity 2924 2926 +2
============================================
Files 336 336
Lines 8907 8907
Branches 1109 1109
============================================
+ Hits 7601 7603 +2
Misses 1013 1013
+ Partials 293 291 -2 ☔ View full report in Codecov by Sentry. |
Contributor
Author
|
I'll check why the test is failing and fix it. ; ) |
Contributor
|
You can run |
ndwlocatieservices
added a commit
to ndwnu/nls-geometry
that referenced
this pull request
May 27, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [org.mockito:mockito-junit-jupiter](https://github.com/mockito/mockito) | test | minor | `5.11.0` -> `5.12.0` | | [org.geotools:gt-geojson-core](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.geotools:gt-epsg-extension](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.geotools:gt-referencing](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.geotools:gt-epsg-hsql](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.springframework.boot:spring-boot-dependencies](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | minor | `3.2.5` -> `3.3.0` | --- ### Release Notes <details> <summary>mockito/mockito (org.mockito:mockito-junit-jupiter)</summary> ### [`v5.12.0`](https://github.com/mockito/mockito/releases/tag/v5.12.0) [Compare Source](mockito/mockito@v5.11.0...v5.12.0) <sup><sup>*Changelog generated by [Shipkit Changelog Gradle Plugin](https://github.com/shipkit/shipkit-changelog)*</sup></sup> ##### 5.12.0 - 2024-05-11 - [25 commit(s)](mockito/mockito@v5.11.0...v5.12.0) by Piotr Przybylak, Stefano Cordio, Tim van der Lippe, dependabot\[bot], jonghoonpark - Bump com.gradle.enterprise from 3.17.2 to 3.17.3 [(#​3341)](mockito/mockito#3341) - Bump org.jetbrains.kotlin:kotlin-stdlib from 1.9.23 to 1.9.24 [(#​3339)](mockito/mockito#3339) - Bump versions.bytebuddy from 1.14.14 to 1.14.15 [(#​3338)](mockito/mockito#3338) - Bump org.shipkit:shipkit-auto-version from 2.0.6 to 2.0.7 [(#​3337)](mockito/mockito#3337) - Bump org.jetbrains.kotlin:kotlin-gradle-plugin from 1.9.23 to 1.9.24 [(#​3336)](mockito/mockito#3336) - Fixes [#​3331](mockito/mockito#3331) : Fix `AdditionalMatchers.and()` and `AdditionalMatchers.or()` not to swap the order of matchers [(#​3335)](mockito/mockito#3335) - AdditionalMatchers.and() and or() swap matcher order [(#​3331)](mockito/mockito#3331) - Bump gradle/wrapper-validation-action from 3.3.1 to 3.3.2 [(#​3327)](mockito/mockito#3327) - Bump versions.bytebuddy from 1.14.13 to 1.14.14 [(#​3324)](mockito/mockito#3324) - Bump org.shipkit:shipkit-auto-version from 2.0.5 to 2.0.6 [(#​3322)](mockito/mockito#3322) - Bump gradle/wrapper-validation-action from 3.3.0 to 3.3.1 [(#​3320)](mockito/mockito#3320) - Bump com.gradle.enterprise from 3.17 to 3.17.2 [(#​3318)](mockito/mockito#33...
ndwlocatieservices
added a commit
to ndwnu/nls-geometry
that referenced
this pull request
Jun 28, 2024
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [org.mockito:mockito-junit-jupiter](https://github.com/mockito/mockito) | test | minor | `5.11.0` -> `5.12.0` | | [org.geotools:gt-geojson-core](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.geotools:gt-epsg-extension](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.geotools:gt-referencing](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.geotools:gt-epsg-hsql](https://github.com/geotools/geotools) | compile | minor | `31.0` -> `31.1` | | [org.springframework.boot:spring-boot-dependencies](https://spring.io/projects/spring-boot) ([source](https://github.com/spring-projects/spring-boot)) | parent | minor | `3.2.5` -> `3.3.0` | --- ### Release Notes <details> <summary>mockito/mockito (org.mockito:mockito-junit-jupiter)</summary> ### [`v5.12.0`](https://github.com/mockito/mockito/releases/tag/v5.12.0) [Compare Source](mockito/mockito@v5.11.0...v5.12.0) <sup><sup>*Changelog generated by [Shipkit Changelog Gradle Plugin](https://github.com/shipkit/shipkit-changelog)*</sup></sup> ##### 5.12.0 - 2024-05-11 - [25 commit(s)](mockito/mockito@v5.11.0...v5.12.0) by Piotr Przybylak, Stefano Cordio, Tim van der Lippe, dependabot\[bot], jonghoonpark - Bump com.gradle.enterprise from 3.17.2 to 3.17.3 [(#​3341)](mockito/mockito#3341) - Bump org.jetbrains.kotlin:kotlin-stdlib from 1.9.23 to 1.9.24 [(#​3339)](mockito/mockito#3339) - Bump versions.bytebuddy from 1.14.14 to 1.14.15 [(#​3338)](mockito/mockito#3338) - Bump org.shipkit:shipkit-auto-version from 2.0.6 to 2.0.7 [(#​3337)](mockito/mockito#3337) - Bump org.jetbrains.kotlin:kotlin-gradle-plugin from 1.9.23 to 1.9.24 [(#​3336)](mockito/mockito#3336) - Fixes [#​3331](mockito/mockito#3331) : Fix `AdditionalMatchers.and()` and `AdditionalMatchers.or()` not to swap the order of matchers [(#​3335)](mockito/mockito#3335) - AdditionalMatchers.and() and or() swap matcher order [(#​3331)](mockito/mockito#3331) - Bump gradle/wrapper-validation-action from 3.3.1 to 3.3.2 [(#​3327)](mockito/mockito#3327) - Bump versions.bytebuddy from 1.14.13 to 1.14.14 [(#​3324)](mockito/mockito#3324) - Bump org.shipkit:shipkit-auto-version from 2.0.5 to 2.0.6 [(#​3322)](mockito/mockito#3322) - Bump gradle/wrapper-validation-action from 3.3.0 to 3.3.1 [(#​3320)](mockito/mockito#3320) - Bump com.gradle.enterprise from 3.17 to 3.17.2 [(#​3318)](mockito/mockito#33...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
related issue: #3331
Motivation:
Modification:
popMatcher()results.Result:
Checklist
including project members to get a better picture of the change
commit is meaningful and help the people that will explore a change in 2 years
Fixes #<issue number>in the description if relevantFixes #<issue number>if relevant