-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Comparing changes
Open a pull request
base repository: mockito/mockito
base: v5.0.0
head repository: mockito/mockito
compare: v5.1.0
- 12 commits
- 46 files changed
- 6 contributors
Commits on Jan 14, 2023
-
Annotate
Mockito#{mock,spy}(T... reified)
with@SafeVarargs
(#2866)This avoids "Unchecked generics array creation for varargs parameter" warnings at the call site.
Configuration menu - View commit details
-
Copy full SHA for acddbbc - Browse repository at this point
Copy the full SHA acddbbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aba0d5 - Browse repository at this point
Copy the full SHA 0aba0d5View commit details
Commits on Jan 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 484de45 - Browse repository at this point
Copy the full SHA 484de45View commit details -
Improve examples for InOrder (#2843)
Include some context in InOrder examples and add an example that uses a static mock as well.
Configuration menu - View commit details
-
Copy full SHA for f2a47c3 - Browse repository at this point
Copy the full SHA f2a47c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23e344e - Browse repository at this point
Copy the full SHA 23e344eView commit details
Commits on Jan 16, 2023
-
Bump com.diffplug.spotless from 6.12.1 to 6.13.0 (#2871)
Bumps com.diffplug.spotless from 6.12.1 to 6.13.0. --- updated-dependencies: - dependency-name: com.diffplug.spotless dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f4d7c34 - Browse repository at this point
Copy the full SHA f4d7c34View commit details
Commits on Jan 18, 2023
-
Bump assertj-core from 3.24.1 to 3.24.2 (#2875)
Bumps assertj-core from 3.24.1 to 3.24.2. --- updated-dependencies: - dependency-name: org.assertj:assertj-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 1418769 - Browse repository at this point
Copy the full SHA 1418769View commit details
Commits on Jan 19, 2023
-
Make sure the tests use mock maker with intended member accessor (#2872)
Fixes #2855 Signed-off-by: Andriy Redko <drreta@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 96452fa - Browse repository at this point
Copy the full SHA 96452faView commit details
Commits on Jan 21, 2023
-
Feat: reified mock overloads (#2882)
Added reified mock overload methods to match the methods that consume an explicit Class<T> object. The following methods have been added: - Mockito.<T>mock(String, T...) - Sets the mock name. - Mockito.<T>mock(Answer, T...) - Sets the default answer. - Mockito.<T>mock(WithSettings, T...) - Provides custom settings. I have also added a case where passing null varargs in would result in a NullPointerException previously. Now, it will tell the user that they should not be providing these varargs at all. These overloads should not conflict with any existing usages of this API in the intended way, as the assumption is that a user probably isn't going to want to be mocking Mockito internals, Strings, or WithSettings objects anyway. If they do need to achieve this, then this is still accessible via the existing Mockito.<T>mock(Class<T>) methods anyway.
Configuration menu - View commit details
-
Copy full SHA for 91223f8 - Browse repository at this point
Copy the full SHA 91223f8View commit details
Commits on Jan 24, 2023
-
Clean up JDK-8 related code (#2883)
Fixes #2879 Signed-off-by: Andriy Redko <drreta@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4775c67 - Browse repository at this point
Copy the full SHA 4775c67View commit details
Commits on Jan 27, 2023
-
Bump com.diffplug.spotless from 6.13.0 to 6.14.0 (#2888)
Bumps com.diffplug.spotless from 6.13.0 to 6.14.0. --- updated-dependencies: - dependency-name: com.diffplug.spotless dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b47bab2 - Browse repository at this point
Copy the full SHA b47bab2View commit details
Commits on Jan 29, 2023
-
Fixes some mistakes and missing details in documentation (#2889)
- Makes static mock verification and construction initialisers into functional interfaces, and adds some missing documentation notes. - Fixes a number of grammar/spelling typos. - Replaces an instance of a JavaDoc comment suggesting to use a deprecated method with a reference to the suggested replacement. - Adds a note about supporting chaining of Spy with InjectMocks into the InjectMocks documentation
Configuration menu - View commit details
-
Copy full SHA for 19ab3ea - Browse repository at this point
Copy the full SHA 19ab3eaView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v5.0.0...v5.1.0