[cdi-dev] org.jboss.cdi.tck.tests.context.application.async.StatusServlet and content type

Romain Manni-Bucau rmannibucau at gmail.com
Fri Dec 26 06:52:37 EST 2014


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


More information about the cdi-dev mailing list