Quarkus Resteasy: Error: java.lang.AssertionError: 1 expectation failed. Response body doesn't match expectation. Expected: is "Exception message" Actual:
Issue
- How to test RestEasy for exceptions?
- The exception message doesn't get propagated to the test client in Quarkus RestEasy.
Error:
java.lang.AssertionError: 1 expectation failed.
Response body doesn't match expectation.
Expected: is "Exception Message"
Actual:
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:72)
Environment
- Red Hat Build of Quarkus
- 2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.