-
Notifications
You must be signed in to change notification settings - Fork 63
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
This PR replaces all expected RuntimeExceptions with TestException. T… #619
Conversation
Can one of the admins verify this patch? |
6553be5
to
19fee51
Compare
I think instances like this should also be updated: https://github.com/eclipse/microprofile-fault-tolerance/pull/619/files#diff-75e65464c0fe1fb4456a2b1d045d03b43dbc7ed637603883d5f8292dccdd5b07L102 This test should expect a TestException on iteration 1,2,3,7,8 and 9. It should fail with a different error (in the surrounding catch block) if another exception is thrown. |
…his is because I saw some genuine RuntimeExceptions causing failures in our build system and if runtime exceptions can appear where they are not expected the wrong runtime exception may appear where a runtime exception is expected
19fee51
to
c1dbb71
Compare
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.
LGTM
tck/src/main/java/org/eclipse/microprofile/fault/tolerance/tck/AsyncTimeoutTest.java
Outdated
Show resolved
Hide resolved
...file/fault/tolerance/tck/circuitbreaker/clientserver/CircuitBreakerClientWithRetryAsync.java
Outdated
Show resolved
Hide resolved
tck/src/main/java/org/eclipse/microprofile/fault/tolerance/tck/FallbackTest.java
Outdated
Show resolved
Hide resolved
tck/src/main/java/org/eclipse/microprofile/fault/tolerance/tck/FallbackTest.java
Outdated
Show resolved
Hide resolved
...clipse/microprofile/fault/tolerance/tck/retry/clientserver/RetryClassLevelClientAbortOn.java
Show resolved
Hide resolved
tck/src/main/java/org/eclipse/microprofile/fault/tolerance/tck/RetryConditionTest.java
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/microprofile/fault/tolerance/tck/visibility/retry/RetryVisibilityTest.java
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/microprofile/fault/tolerance/tck/visibility/retry/RetryVisibilityTest.java
Show resolved
Hide resolved
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.
See comments above.
.../java/org/eclipse/microprofile/fault/tolerance/tck/visibility/retry/RetryVisibilityTest.java
Outdated
Show resolved
Hide resolved
08e46c5
to
12dec1a
Compare
12dec1a
to
f297f33
Compare
These are all changes that the autoformatter makes when running the build.
@eclipse-microprofile-bot test this please |
@eclipse-microprofile-bot test this please |
1 similar comment
@eclipse-microprofile-bot test this please |
…his is because I saw some genuine RuntimeExceptions causing failures in our build system and if runtime exceptions can appear where they are not expected the wrong runtime exception may appear where a runtime exception is expected
Where a runtime exception is not expected it also updates the error message to include the details of that exception
fixes #620