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
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,20 @@
4
4
5
5
## [Unreleased]
6
6
7
+
## [0.3.0]
8
+
-**IntelliJ version support: versions prior to 2021.1 are no longer supported.**
9
+
10
+
### Added
11
+
- Added a new inspection to report checked exceptions in `*Throw()` stubbing calls that are not specified in the stubbed method's `throws` clause.
12
+
See [documentation](/docs/stubbing.md#invalid-checked-exception-is-passed-into-throw-methods).
13
+
-[#8](https://github.com/picimako/mockitools/issues/8): Added a new inspection that reports multiple consecutive calls on `*Return()` stubbing calls. These can be merged into a single such call.
14
+
See [documentation](docs/stubbing.md#consecutive-return-calls-can-be-merged).
15
+
16
+
### Changed
17
+
- Updated Gradle IntelliJ plugin to 1.4.0, gradle to 7.4, and qodana-action to 4.2.5.
18
+
- Replaced unit test file checks with a less restrictive, test source root content check, because unit test file names don't necessarily end with the word *Test*.
19
+
This will allow certain functionality to run in files whose names don't end with *Test*.
20
+
7
21
## [0.2.0]
8
22
### Added
9
23
-[#2](https://github.com/picimako/mockitools/issues/2): Extended `MockTypeInspection` to validate and report types annotated with `@DoNotMock` annotation.
Reports multiple consecutive calls to `*Return()` methods, so that they may be merge into a single call.
40
+
41
+
Both `org.mockito.Mockito` and `org.mockito.BDDMockito` based stubbing chains are supported, including calls to `doReturn()`, `thenReturn()` and `willReturn()`.
42
+
43
+
If there are multiple sections of consecutive calls within the same call chain, they are reported separately for better notification,
44
+
but upon invoking the quick fix, all sections are merged respectively. It is always the last consecutive call that is registered.
0 commit comments