Hi,
This is not expected. So for you it fails with ClassCastException (or something similar)
in htmlunit right? This is weird. I can see the test passing. Which version of htmlunit do
you use? I think I have no problem to set content type in StatusServlet, just curious
about the problem. I guess this problem occurs also in following tests (using very similar
servlet) right?:
org.jboss.cdi.tck.tests.context.request.async.RequestContextAsyncListenerTest
org.jboss.cdi.tck.tests.context.conversation.determination.ConversationDeterminationTest
org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListenerTest
Thank's
Tom
----- Original Message -----
From: "Romain Manni-Bucau" <rmannibucau(a)gmail.com>
To: cdi-dev(a)lists.jboss.org
Sent: Friday, December 26, 2014 12:52:37 PM
Subject: [cdi-dev] org.jboss.cdi.tck.tests.context.application.async.StatusServlet and
content type
Hi
doesn't org.jboss.cdi.tck.tests.context.application.async.StatusServlet
forget to set content type to text/plain?
org.jboss.cdi.tck.tests.context.application.async.ApplicationContextAsyncListenerTest
relies on it like it:
TextPage results = webClient.getPage(contextPath + "Status");
but since the content type of the response is not set it uses servlet
default one (text/html) and them htmlunit can't cast a HtmlPage to a
TextPage.
is it expected? Is it an issue on my local setup?
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev
Note that for all code provided on this list, the provider licenses the code under the
Apache License, Version 2 (
http://www.apache.org/licenses/LICENSE-2.0.html). For all other
ideas provided on this list, the provider waives all patent and other intellectual
property rights inherent in such information.
--
Tomas Remes