Skip to content

Releases: Ninja-Squad/springmockk

4.0.2

09 Mar 17:52
Compare
Choose a tag to compare
  • the exception thrown when more than one candidate bean names for SpykBean were found didn't align with the one thrown by Spring Boot's native Mockito support. Now it does. See #100

4.0.1

05 Mar 08:37
Compare
Choose a tag to compare
  • fix #97: memory leak in com.ninjasquad.springmockk.MockkClear. In projects where many different Spring contextx are created during tests, even though the Spring test context caches ends up destroying old ones, SpringMockK retained references to mocks, themselves retaining references to the Spring context, and leading to high memory usage. SpringMockK now uses weak references in order to not prevent the garbage collector to collect those mocks if they're only referenced by SpringMockK, for clearing purposes.

4.0.0

01 Dec 20:45
Compare
Choose a tag to compare

SpringMockK 4.0.0 is built against Spring Boot 3, with Java 17, and MockK 1.13.3.

Spying JDK proxies with Java 17 requires to pass a specific option to the JVM. See the README for details.

Important note: MockKs artifact ID has been modified from mockk to mockk-jvm. If you specify a specific version for MockK in your build rather than relying on SpringMockK's transitive dependency, make sure to use the new arctifact ID.

3.1.2

26 Nov 13:32
Compare
Choose a tag to compare
  • fix #90: issue with verifyAll failing when using constructor injection

3.1.1

24 Feb 14:45
Compare
Choose a tag to compare

3.1.0

17 Dec 12:47
Compare
Choose a tag to compare

3.0.1

30 Dec 10:20
Compare
Choose a tag to compare
  • fix #56 : publish the gradle module metadata.

3.0.0

15 Nov 17:13
Compare
Choose a tag to compare
  • Upgrade to Spring Boot 2.4.0. Please keep using version 2.x of SpringMockK if you still use Spring Boot 2.2.x or 2.3.x. Changes made in Spring Boot Mockito's support in 2.4.0 have ben ported to SpringMockK. The main new feature being to be able to use nested JUnit 5 tests. \o/
  • Upgrade to MockK 1.10.2

2.0.3

07 Aug 06:55
Compare
Choose a tag to compare

fix #44: Spring context is not being reloaded when it shouldn't be anymore. This was actually a Spring Boot bug. The fix in Spring Boot has been reported here.

2.0.2

01 Jul 18:08
Compare
Choose a tag to compare

This release contains bug fixes that have been reported from Spring Boot