Skip to content

Use failWithActualExpectedAndMessage() where possible - #5696

Merged
shakuzen merged 1 commit into
micrometer-metrics:mainfrom
izeye:polish-gh-5550
Nov 25, 2024
Merged

shakuzen merged 1 commit into
micrometer-metrics:mainfrom
izeye:polish-gh-5550

Conversation

@izeye

@izeye izeye commented Nov 21, 2024

Copy link
Copy Markdown
Contributor

This PR changes to use failWithActualExpectedAndMessage() where possible.

See gh-5550

public SELF hasRemainingCurrentObservationSameAs(Observation observation) {
isNotNull();
Observation current = actual.getCurrentObservation();
if (current == null) {

@izeye izeye Nov 21, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I changed this to align with the hasRemainingCurrentScopeSameAs() along the way.

@shakuzen shakuzen added type: task A general task module: micrometer-observation-test enhancement A general enhancement and removed type: task A general task labels Nov 25, 2024
@shakuzen shakuzen added this to the 1.15.0-M1 milestone Nov 25, 2024
@shakuzen
shakuzen merged commit 9537358 into micrometer-metrics:main Nov 25, 2024
@izeye
izeye deleted the polish-gh-5550 branch November 25, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants