Skip to content
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

Convert dropwizard tests from groovy to java #12542

Merged
merged 5 commits into from
Nov 1, 2024

Conversation

jaydeluca
Copy link
Member

Related to #7195

@jaydeluca jaydeluca requested a review from a team as a code owner October 31, 2024 01:44
controller(
EXCEPTION,
() -> {
Exception ex = new Exception(EXCEPTION.getBody());
Copy link
Contributor

Choose a reason for hiding this comment

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

Could options.setExpectedException(new IllegalStateException(EXCEPTION.getBody())); and then use IllegalStateException here. Probably should change the default exception to IllegalStateException as the checked exception is annoying in java.

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably should change the default exception to IllegalStateException as the checked exception is annoying in java.

is #12555 the general idea of what you were thinking?

@laurit laurit merged commit 050e299 into open-telemetry:main Nov 1, 2024
56 checks passed
@jaydeluca jaydeluca deleted the convert-dropwizard branch November 9, 2024 02:05
akats7 pushed a commit to akats7/opentelemetry-java-instrumentation that referenced this pull request Nov 21, 2024
akats7 pushed a commit to akats7/opentelemetry-java-instrumentation that referenced this pull request Nov 21, 2024
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.

2 participants