-
Notifications
You must be signed in to change notification settings - Fork 867
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
Conversation
e2d688f
to
24b2a26
Compare
...ting/src/test/java/io/opentelemetry/javaagent/instrumentation/dropwizard/DropwizardTest.java
Outdated
Show resolved
Hide resolved
...ting/src/test/java/io/opentelemetry/javaagent/instrumentation/dropwizard/DropwizardTest.java
Outdated
Show resolved
Hide resolved
controller( | ||
EXCEPTION, | ||
() -> { | ||
Exception ex = new Exception(EXCEPTION.getBody()); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
…mentation into convert-dropwizard
1788d6f
to
e4548db
Compare
Related to #7195