Again with something related to the CDI-TCK execution. I'm using the version 4.0.1 and when executing I'm seeing the following error:
- org.jboss.cdi.tck.tests.context.application.async.ApplicationContextAsyncListenerTest.testApplicationContextActiveOnError
- org.jboss.cdi.tck.tests.context.conversation.determination.ConversationDeterminationTest.testConversationDetermination
- org.jboss.cdi.tck.tests.context.request.async.RequestContextAsyncListenerTest.testRequestContextActiveOnError
- org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListenerTest.testSessionContextActiveOnError
I'm not sure if this is correct because when checking details of the test I saw that the Servlet called is going to generate a ServletException that is going to cause an error 500 from the Server, but the following block of code from the htmlunit implementation
make me think that I need to configure something to disable the throw of the FailingHttpStatusCodeException. Do you know how to pass this exception? or Do you know what to config to pass this tests?
this is the block of code from the htmlunit implementation:
WebClient:
public void throwFailingHttpStatusCodeExceptionIfNecessary(WebResponse webResponse) {
int statusCode = webResponse.getStatusCode();
boolean successful = statusCode >= 200 && statusCode < 300 || statusCode == 305 || statusCode == 304;
if (this.getOptions().isThrowExceptionOnFailingStatusCode() && !successful) {
throw new FailingHttpStatusCodeException(webResponse);
}
}
regards