Skip to content

Release 1.6.0. #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 6, 2025
Merged

Release 1.6.0. #38

merged 9 commits into from
Jun 6, 2025

Conversation

ksunandr
Copy link
Contributor

@ksunandr ksunandr commented Jun 6, 2025

TG-23050 Specifying returnValueFactory for @InTestsMock #33
TG-23051 throwException and throwExceptionFactory for @InTestsMock #35
Update version to 1.6.0 #36

Changed annotations

@InTestsMock - new attributes throwException and throwExceptionFactory
Supported by Diffblue Cover from 2025.06.02
See https://docs.diffblue.com/features/cover-annotations/mocking-annotations for more details
Full Changelog: [v1.5.0]...[v1.6.0]

jamescatto and others added 9 commits May 29, 2025 14:13
Merge back from main to develop after 1.5.0 release
…_InTestsMock

TG-23050 Specifying returnValueFactory for  @InTestsMock
TG-23222 Use new maven central portal
…owExceptionFactory

TG-23051  throwException and throwExceptionFactory for @InTestsMock
@ksunandr ksunandr requested review from Copilot, jamescatto and ThomasPerkins1123 and removed request for Copilot June 6, 2025 10:53
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces changes to support configurable exception throwing and return value handling in the @InTestsMock annotation while updating the project version to 1.6.0.

  • Added a marker exception class (NoException) to indicate no exception should be thrown.
  • Updated the @InTestsMock annotation to include the new attributes: returnValueFactory, throwException, and throwExceptionFactory.
  • Bumped the project version and updated related Maven plugin and dependency configurations.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/main/java/com/diffblue/cover/annotations/exceptions/NoException.java Added a marker exception class to denote no exception should be thrown.
src/main/java/com/diffblue/cover/annotations/InTestsMock.java Extended the annotation with new attributes for return value and exception handling.
pom.xml Updated project version to 1.6.0 and switched Maven publish plugin configuration.
README.md Updated dependency references to match the new version.
.github/settings.xml Changed server id to reflect the updated publishing configuration.

@ksunandr ksunandr merged commit a47eeb8 into main Jun 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants