Author: scabanovich
Date: 2011-11-15 19:17:49 -0500 (Tue, 15 Nov 2011)
New Revision: 36357
Added:
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/.settings/
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/pages/404.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/pages/405.jsp
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/WEB-INF/web.xml
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java
Log:
JBIDE-10177
https://issues.jboss.org/browse/JBIDE-10177
Test added for verification of error page with .xhtml extension, when default suffix is
not specified.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/WEB-INF/web.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/WEB-INF/web.xml 2011-11-15
23:10:49 UTC (rev 36356)
+++
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/WEB-INF/web.xml 2011-11-16
00:17:49 UTC (rev 36357)
@@ -43,4 +43,16 @@
<exception-type>java.lang.Exception</exception-type>
<location>/error2</location>
</error-page>
+ <error-page>
+ <error-code>404</error-code>
+ <location>pages/404.jsf</location>
+ </error-page>
+ <error-page>
+ <error-code>405</error-code>
+ <location>pages/405.jsf</location>
+ </error-page>
+ <error-page>
+ <error-code>400</error-code>
+ <location>pages/400.jsf</location>
+ </error-page>
</web-app>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/pages/404.xhtml
===================================================================
Added:
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/projects/Test/WebContent/pages/405.jsp
===================================================================
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java 2011-11-15
23:10:49 UTC (rev 36356)
+++
trunk/jsf/tests/org.jboss.tools.jsf.verification.test/src/org/jboss/tools/jsf/verification/test/WebVerificationTest.java 2011-11-16
00:17:49 UTC (rev 36357)
@@ -54,6 +54,10 @@
AbstractResourceMarkerTest.assertMarkerIsNotCreated(web, MARKER_TYPE, "error:
Attribute location references to /error that does not exist in web content", 40);
AbstractResourceMarkerTest.assertMarkerIsCreated(web, MARKER_TYPE, "error:
Attribute location references to /error2 that does not exist in web content", 44);
+ AbstractResourceMarkerTest.assertMarkerIsNotCreated(web, MARKER_TYPE, "error:
Attribute location references to .* that does not exist in web content", 48);
+ AbstractResourceMarkerTest.assertMarkerIsNotCreated(web, MARKER_TYPE, "error:
Attribute location references to .* that does not exist in web content", 52);
+ AbstractResourceMarkerTest.assertMarkerIsCreated(web, MARKER_TYPE, "error:
Attribute location references to pages/400.* that does not exist in web content",
56);
+
IMarker[] markers = web.findMarkers(null, true, IResource.DEPTH_INFINITE);
for (IMarker marker: markers) {
int line = marker.getAttribute(IMarker.LINE_NUMBER, -1);