You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,29 @@
4
4
5
5
## [Unreleased]
6
6
7
+
## [0.5.0]
8
+
### Added
9
+
-[#19](https://github.com/picimako/mockitools/issues/19): Added bulk options to convert verifications from `BDDMockito.then()` and `Mockito.verify()` by selecting one or more
10
+
verifications in the editor.
11
+
-[#20](https://github.com/picimako/mockitools/issues/20): Extended the conversion of `InOrder.verify()` call chains with a bulk mode,
12
+
so that if multiple (or just a single) such call chain is selected/highlighted in the editor, they all can be converted to the same approach at once.
13
+
-[#21](https://github.com/picimako/mockitools/issues/21): Added an inspection to report InOrder local variables that are used in only one verification call.
14
+
Besides `MockedStatic`, it can report for both `InOrder.verify()` and `BDDMockito.then().should(InOrder)` verifications.
15
+
-[#22](https://github.com/picimako/mockitools/issues/22): Added a new action to convert from and to `InOrder.verify()` based verification.
16
+
Along with it, extended the possible conversion options from and to `Mockito.verify()` and `BDDMockito.then()` as well.
17
+
Details are available in the [Verifications](https://github.com/picimako/mockitools/blob/main/docs/verifications.md) document.
18
+
-[#23](https://github.com/picimako/mockitools/issues/23): Added a quick fix, so that checked exceptions can be added to the stubbed method's `throws` clause
19
+
when they are specified in the stubbing, but not in the mentioned `throws` clause.
20
+
-[#24](https://github.com/picimako/mockitools/issues/24): Strictness configuration is now supported by the conversion between `@Mock` and `Mockito.mock(Class, MockSettings)` in both directions.
21
+
-`EnforceConventionInspection` can now report `InOrder.verify()` calls too, as part of enforcing `BDDMockito.then()` verification.
22
+
-[#27](https://github.com/picimako/mockitools/issues/27): Added an inspection that can report mock objects used in misconfigured `InOrder` verifications.
23
+
24
+
### Changed
25
+
- Removed support for IJ2021.1. From now on 2021.2 is the earliest version supported.
26
+
27
+
### Fixed
28
+
- Fixed an issue that when converting from `BDDMockito.then().should(InOrder)` to `Mockito.verify()` the InOrder variable remained.
@@ -37,7 +37,8 @@ You can find the list of those inspections in the [Mockitools/SonarLint rules](d
37
37
38
38
## Why Mockitools is tasty
39
39
40
-
If [*"Mockito ... tastes really good"* and *"doesn’t give you hangover"*](https://site.mockito.org/#why), this IDE plugin will only make it better. You can find out why, in the dedicated documentation below.
40
+
If [*"Mockito ... tastes really good"* and *"doesn’t give you hangover"*](https://site.mockito.org/#why),
41
+
this IDE plugin will only make it better. You can find out why, in the dedicated documentation below.
Conversion of one or more verification call chains is also available via selection in the editor.
175
+
It can convert between `org.mockito.Mockito`, `org.mockito.BDDMockito` and `org.mockito.InOrder` in any direction, with some nuances that should be taken into consideration.
176
+
177
+
The availability is the same, while the conversion logic is mostly the same, as for the single conversion options:
178
+
- when converting from `BDDMockito.then()`
179
+
-`InOrder.verify()` as a target is available only when **all**`BDDMockito.then()` chains in the selection use an `InOrder` variable, and they use the same one,
180
+
- adding an `InOrder` to the `should()` call is available only when **none** of the `BDDMockito.then()` chains use an `InOrder` variable.
181
+
- when a new `InOrder` local variable is created, it is used in all selected and converted verifications. If you want to use different ones for different verifications,
0 commit comments