-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixes #3331 : Fix AdditionalMatchers.and()
and AdditionalMatchers.or()
not to swap the order of matchers
#3335
Conversation
src/test/java/org/mockito/internal/progress/ArgumentMatcherStorageImplTest.java
Outdated
Show resolved
Hide resolved
I midified the code based on your feedback, can you check it? The test code works like this and
or
|
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.
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. |
I'll check why the test is failing and fix it. ; ) |
You can run |
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 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...
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