-
Notifications
You must be signed in to change notification settings - Fork 196
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
org.jboss.arquillian.test.spi.ExceptionProxy does not produce meaningful stack trace when exception class is missing on client #641
Comments
I just ran into a similar problematic error for a weld failure. The issue is that the weld classes involved in the exception on the server need to be on the client classpath in order for the We really should just be sending back the server side stack trace serialized as a string rather than trying to serialize exceptions that are often not going to be in a test client setup. |
So there might be a couple of levels of issues here. One is that when an I have a non-remote container testcase in the test/spi module showing this The We will have to create additional tests for the container remote execution to validate this is getting passed through correctly. Just glancing at the current tests for the junit5 container it is not clear it is really validating a remote execution scenario. |
Doing that in a backward portable manner is complicate by the use of |
Yeah. The only solution I can think of would be to treat the stack trace from the server as a |
It turns out the stacktrace is not the problem. The problem is trying to carry the original cause around that in many cases will not even exist on the client. Rather there is some common parent exception from the api standards that is what matters. |
#656 is a first step, but I think we should all but eliminate the use of the The current I'll have to test this will a real remote test case as it seems like there still could be a problem with the junit container remote exception handling. |
Issue Overview
When attempting to use
Assertions.assertInstanceOf()
I received a very cryptic error. This was for an in-container test.Error from Arqullian:
Expected Behaviour
The true assertion should have been printed which I found in debugging was:
Current Behaviour
The error above is printed which doesn't really explain what is happening.
Steps To Reproduce
I've not attempted to create a reproducer, but something simple like this would work with WildFly Arquillian.
Note the test will fail because the injected
jakarta.ws.rs.client.Client
is a Weld proxy and not an instance oforg.jboss.resteasy.client.jaxrs.ResteasyClient
. However, I had to debug Arquillian to figure that out.Additional Information
The text was updated successfully, but these errors were encountered: