[jbosstools-commits] JBoss Tools SVN: r44130 - in trunk/jsf/tests/org.jboss.tools.jsf.test: projects/JSF2ComponentsValidator/JavaSource/test and 2 other directories.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Sep 28 18:40:02 EDT 2012
Author: scabanovich
Date: 2012-09-28 18:40:02 -0400 (Fri, 28 Sep 2012)
New Revision: 44130
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/JavaSource/test/
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/JavaSource/test/MyNav.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/WEB-INF/faces-config.xml
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/FacesConfigValidatorTest.java
Log:
JBIDE-12754
https://issues.jboss.org/browse/JBIDE-12754
Test is added.
Added: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/JavaSource/test/MyNav.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/JavaSource/test/MyNav.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/JavaSource/test/MyNav.java 2012-09-28 22:40:02 UTC (rev 44130)
@@ -0,0 +1,8 @@
+package test;
+
+public class MyNav {
+
+ public MyNav() {
+ }
+
+}
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/JavaSource/test/MyNav.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/WEB-INF/faces-config.xml 2012-09-28 22:38:07 UTC (rev 44129)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/WEB-INF/faces-config.xml 2012-09-28 22:40:02 UTC (rev 44130)
@@ -47,6 +47,7 @@
</navigation-rule>
<application>
<action-listener>actionListener</action-listener>
+ <navigation-handler>test.MyNav</navigation-handler>
</application>
<factory/>
<lifecycle/>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/FacesConfigValidatorTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/FacesConfigValidatorTest.java 2012-09-28 22:38:07 UTC (rev 44129)
+++ trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/validation/FacesConfigValidatorTest.java 2012-09-28 22:40:02 UTC (rev 44130)
@@ -18,6 +18,7 @@
import org.jboss.tools.common.base.test.validation.TestUtil;
import org.jboss.tools.jsf.model.JSFConstants;
import org.jboss.tools.jsf.web.validation.JSFValidationMessage;
+import org.jboss.tools.jst.web.validation.WebXMLValidatorMessages;
import org.jboss.tools.test.util.ProjectImportTestSetup;
import org.jboss.tools.tests.AbstractResourceMarkerTest;
@@ -40,6 +41,13 @@
project = ProjectImportTestSetup.loadProject(PROJECT_NAME);
}
+ public void testWrongNavigationHandler() throws Exception {
+ IResource resource = project.findMember("/WebContent/WEB-INF/faces-config.xml"); //$NON-NLS-1$
+ assertTrue(resource.exists());
+ TestUtil.validate(resource);
+ AbstractResourceMarkerTest.assertMarkerIsCreated(resource, NLS.bind(WebXMLValidatorMessages.CLASS_NOT_EXTENDS, new String[]{"navigation-handler", "test.MyNav", "javax.faces.application.NavigationHandler"}), 50);
+ }
+
public void testNavigation() throws Exception {
IResource resource = project.findMember("/WebContent/WEB-INF/faces-config.xml"); //$NON-NLS-1$
assertTrue(resource.exists());
More information about the jbosstools-commits
mailing list