> For the complete documentation index, see [llms.txt](https://cover-docs.diffblue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cover-docs.diffblue.com/updates-and-upgrades/release-archive/2025-10-01.md).

# 2025-10-01

Enables precise control over test inputs with the new `@InTestsUseFactories` annotation and enhances test quality with improved `javax.servlet` tests and broader `assertDoesNotThrow` assertions. This release also adds Mockito 5.20.0 support and resolves several test generation failures.

***

## Improved Test Quality & Control

* **Precise Input Control:** Diffblue Cover now supports the `@InTestsUseFactories` annotation, enabling you to guide test generation by specifying which factory methods should be used to create objects for a given test.
* **Higher Quality Servlet Tests:** Cover now generates higher quality tests for projects using `javax.servlet`. For the best results, add the `spring-test` dependency to your project, which allows Cover to use Spring's MockHttp classes for test creation.

## Framework Support & Compatibility

* **Mockito 5.20.0 Support:** Diffblue Cover now supports Mockito Core version 5.20.0, ensuring full compatibility for tests generated in projects that use this version of the mocking framework.

***

## Enhancements

* Diffblue Cover now supports Mockito Core version 5.20.0, ensuring test compatibility for projects using this version. \[Ref: TG-23807]
* Diffblue Cover now generates higher quality tests for projects using `javax.servlet`. Adding the `spring-test` dependency produces more effective tests by using Spring's `MockHttp` classes to accurately simulate HTTP requests and responses. \[Ref: TG-23095]
* Diffblue Cover now supports the `@InTestsUseFactories` annotation to provide more precise control over test inputs. This annotation guides test generation by specifying which factory methods Cover must use to create objects for a given test. \[Ref: TG-21232]

## Resolved Issues

* Resolved an issue that caused Cover to report `R011` or `R081` output codes when writing tests for code using log4j or Mockito. These failures were due to sandbox policy violations during localhost resolution. \[Ref: TG-23827]
* Resolved an issue that limited `assertDoesNotThrow` test cases. Diffblue Cover now writes these assertions for any validation method, not just those named 'validate', improving test coverage for methods that do not follow a specific naming convention. \[Ref: TG-23762]
* Resolved a test generation failure (`F009`) that occurred when a method from an instance was referenced multiple times within the method under test. This fix applies to instances created with a parameterized constructor or a factory. \[Ref: TG-23416]

## Known Issues

* Plugin: Diffblue Cover incorrectly displays a menu option to write tests for existing test files. \[Ref: TG-17163]
* Cover supports Open JDK and Oracle JDK; results with other JDKs may differ due to the variability in their implementations of Java. \[Ref: TG-19345]
* Cover may encounter an `F009` (Internal error) caused by a `ClassCircularityError` involving `org/mockito/configuration/MockitoConfiguration` when writing tests with Mockito 5. The recommended workaround is to downgrade to Mockito 4.x. \[Ref: TG-19610]
* Reports: Cover only counts Java code towards the total line count metrics. Kotlin code is not currently included. \[Ref: TG-22088]
* Reports: Total lines of code metric can incorrectly count a multi-line comment at the end of a line of code, resulting in fewer than expected lines counted. \[Ref: TG-22089]
* Reports: Following an upgrade, the 'Total Lines of Code' card may show 0 until a new reports bundle has been uploaded. \[Ref: TG-22094]
* Cover may write more simplistic tests with less meaningful assertions when Spring Boot dependency injection is disabled. \[Ref: TG-22102]
* In some circumstances, Cover will still write Spring Boot tests when Spring Boot dependency injection is disabled. \[Ref: TG-22103]
* Cover may write failing TestNG tests when Spring Boot dependency injection is disabled. \[Ref: TG-22107]
* Plugin: On some displays, the Test Review subsection title 'Tests for review' is malformed. \[Ref: TG-22805]
* When test formatting settings are changed, the Test Review feature may incorrectly remove the `@ManagedByDiffblue` annotation from tests, particularly in cases involving static import formatting changes. \[Ref: TG-23750]
