Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Sep 12, 2025

Applying the style guide in preparation for enabling Copilot reviews.

package io.opentelemetry.contrib.disk.buffering.internal.serialization.deserializers;

import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

nice, I'll follow-up and try that out everywhere

Copy link
Member Author

Choose a reason for hiding this comment

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

@zeitlinger I finally gave this a try, and I wish the API looked like:

assertThatCode(boomCode).throwsInstanceOf(Exception.class)

which reads nicely, vs

assertThatCode(boomCode).isInstanceOf(Exception.class)

which reads oddly to me

Copy link
Member

@zeitlinger zeitlinger left a comment

Choose a reason for hiding this comment

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

great improvement for debugging!

@trask trask marked this pull request as ready for review September 12, 2025 14:11
@trask trask requested a review from a team as a code owner September 12, 2025 14:11
@trask trask added this pull request to the merge queue Sep 12, 2025
Merged via the queue into open-telemetry:main with commit 901e64b Sep 12, 2025
25 checks passed
@trask trask deleted the assertj-disk-buffering branch September 12, 2025 15:22
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