Skip to content

Convert dropwizard tests from groovy to java#12542

Merged
laurit merged 5 commits into
open-telemetry:mainfrom
jaydeluca:convert-dropwizard
Nov 1, 2024
Merged

Convert dropwizard tests from groovy to java#12542
laurit merged 5 commits into
open-telemetry:mainfrom
jaydeluca:convert-dropwizard

Conversation

@jaydeluca

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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