ClassCastException during surefire tests when calling
ExternalContextUtils.getServletContextPath()
--------------------------------------------------------------------------------------------------
Key: TRINIDAD-1506
URL: https://issues.apache.org/jira/browse/TRINIDAD-1506
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 1.2.11-core
Reporter: Matt Cooper
Priority: Minor
If you have a renderer that makes a call like this:
ExternalContextUtils.getServletContextPath(context.getExternalContext());
Then, when running a surefire test for a component that uses such a renderer, a
ClassCastException will be thrown where some underlying code is expecting a
javax.servlet.ServletContext however, a
org.apache.myfaces.trinidadinternal.renderkit.MApplication is provided instead.
Perhaps MApplication needs to implement/extend ServletContext or otherwise
ExternalContextUtils.getServletContextPath() needs to return a dummy value when
running surefire tests.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.