Author: dazarov
Date: 2012-06-29 16:26:12 -0400 (Fri, 29 Jun 2012)
New Revision: 42326
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputdata.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputnmbr.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputtype.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/data/
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/data/data.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/nmbr/
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/nmbr/nmbr.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/type/
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/type/type.xhtml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/ELReferencesQueryParticipantTest.java
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/JSF2RefactoringTest.java
Log:
org.jboss.tools.jsf.test failure
https://issues.jboss.org/browse/JBIDE-12259
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputdata.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputdata.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputdata.xhtml 2012-06-29
20:26:12 UTC (rev 42326)
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core"
+
xmlns:ez="http://java.sun.com/jsf/composite/data">
+
+<f:loadBundle basename="resources" var="msg" />
+
+<ui:composition template="/templates/common.xhtml"
+
xmlns:jar="http://java.sun.com/jsf/composite/jarPage"
+
xmlns:jar1="http://java.sun.com/jsf/composite/jarPage1">
+
+ <ui:define name="pageTitle">Input User Name</ui:define>
+
+ <ui:define name="pageHeader">Facelets Hello
Application</ui:define>
+
+ <ui:define name="body">
+ <ez:data id="inputdata" label="${msgs.prompt}"
value="#{user.name}" action="#{user.sayHello}" submitlabel="Say
Hello"/>
+ <form>
+ <jar:echo1 echo="Hello" />
+ <jar:echo echo="Hello" />
+ <jar:echo anknownAttr="1" echo="Hello" />
+ <jar1:echo echo="Hello" />
+ </form>
+
+ </ui:define>
+</ui:composition>
+</html>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputnmbr.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputnmbr.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputnmbr.xhtml 2012-06-29
20:26:12 UTC (rev 42326)
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core"
+
xmlns:ez="http://java.sun.com/jsf/composite/nmbr">
+
+<f:loadBundle basename="resources" var="msg" />
+
+<ui:composition template="/templates/common.xhtml"
+
xmlns:jar="http://java.sun.com/jsf/composite/jarPage"
+
xmlns:jar1="http://java.sun.com/jsf/composite/jarPage1">
+
+ <ui:define name="pageTitle">Input User Name</ui:define>
+
+ <ui:define name="pageHeader">Facelets Hello
Application</ui:define>
+
+ <ui:define name="body">
+ <ez:nmbr id="inputnmbr" label="${msgs.prompt}"
value="#{user.name}" action="#{user.sayHello}" submitlabel="Say
Hello"/>
+ <form>
+ <jar:echo1 echo="Hello" />
+ <jar:echo echo="Hello" />
+ <jar:echo anknownAttr="1" echo="Hello" />
+ <jar1:echo echo="Hello" />
+ </form>
+
+ </ui:define>
+</ui:composition>
+</html>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputtype.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputtype.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/pages/inputtype.xhtml 2012-06-29
20:26:12 UTC (rev 42326)
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:c="http://java.sun.com/jstl/core"
+
xmlns:ez="http://java.sun.com/jsf/composite/type">
+
+<f:loadBundle basename="resources" var="msg" />
+
+<ui:composition template="/templates/common.xhtml"
+
xmlns:jar="http://java.sun.com/jsf/composite/jarPage"
+
xmlns:jar1="http://java.sun.com/jsf/composite/jarPage1">
+
+ <ui:define name="pageTitle">Input User Name</ui:define>
+
+ <ui:define name="pageHeader">Facelets Hello
Application</ui:define>
+
+ <ui:define name="body">
+ <ez:type id="inputtype" label="${msgs.prompt}"
value="#{user.name}" action="#{user.sayHello}" submitlabel="Say
Hello"/>
+ <form>
+ <jar:echo1 echo="Hello" />
+ <jar:echo echo="Hello" />
+ <jar:echo anknownAttr="1" echo="Hello" />
+ <jar1:echo echo="Hello" />
+ </form>
+
+ </ui:define>
+</ui:composition>
+</html>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/data/data.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/data/data.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/data/data.xhtml 2012-06-29
20:26:12 UTC (rev 42326)
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:composite="http://java.sun.com/jsf/composite">
+
+ <composite:interface>
+ <composite:attribute name="label"/>
+ <composite:attribute name="value" required="true"/>
+ <composite:attribute name="action" required="true"
method-signature="java.lang.String f()"/>
+ <composite:attribute name="submitlabel"/>
+ </composite:interface>
+
+ <composite:implementation>
+ <h:form>
+ <h:outputText value="#{cc.attrs.label}" />
+ <h:inputText value="#{cc.attrs.value}" />
+ <h:commandButton action="#{cc.attrs.action}"
value="#{cc.attrs.submitlabel}" />
+ <h:outputText>#{person.name}</h:outputText>
+ <h:outputText>#{person.nameBroken}</h:outputText>
+ </h:form>
+ </composite:implementation>
+</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/nmbr/nmbr.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/nmbr/nmbr.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/nmbr/nmbr.xhtml 2012-06-29
20:26:12 UTC (rev 42326)
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:composite="http://java.sun.com/jsf/composite">
+
+ <composite:interface>
+ <composite:attribute name="label"/>
+ <composite:attribute name="value" required="true"/>
+ <composite:attribute name="action" required="true"
method-signature="java.lang.String f()"/>
+ <composite:attribute name="submitlabel"/>
+ </composite:interface>
+
+ <composite:implementation>
+ <h:form>
+ <h:outputText value="#{cc.attrs.label}" />
+ <h:inputText value="#{cc.attrs.value}" />
+ <h:commandButton action="#{cc.attrs.action}"
value="#{cc.attrs.submitlabel}" />
+ <h:outputText>#{person.name}</h:outputText>
+ <h:outputText>#{person.nameBroken}</h:outputText>
+ </h:form>
+ </composite:implementation>
+</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/type/type.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/type/type.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/projects/JSF2ComponentsValidator/WebContent/resources/type/type.xhtml 2012-06-29
20:26:12 UTC (rev 42326)
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:composite="http://java.sun.com/jsf/composite">
+
+ <composite:interface>
+ <composite:attribute name="label"/>
+ <composite:attribute name="value" required="true"/>
+ <composite:attribute name="action" required="true"
method-signature="java.lang.String f()"/>
+ <composite:attribute name="submitlabel"/>
+ </composite:interface>
+
+ <composite:implementation>
+ <h:form>
+ <h:outputText value="#{cc.attrs.label}" />
+ <h:inputText value="#{cc.attrs.value}" />
+ <h:commandButton action="#{cc.attrs.action}"
value="#{cc.attrs.submitlabel}" />
+ <h:outputText>#{person.name}</h:outputText>
+ <h:outputText>#{person.nameBroken}</h:outputText>
+ </h:form>
+ </composite:implementation>
+</html>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/ELReferencesQueryParticipantTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/ELReferencesQueryParticipantTest.java 2012-06-29
20:08:24 UTC (rev 42325)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/ELReferencesQueryParticipantTest.java 2012-06-29
20:26:12 UTC (rev 42326)
@@ -35,6 +35,15 @@
matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/demo/input.xhtml",
"person"));
matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/demo/input.xhtml",
"person"));
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/type/type.xhtml",
"person"));
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/type/type.xhtml",
"person"));
+
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/data/data.xhtml",
"person"));
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/data/data.xhtml",
"person"));
+
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/nmbr/nmbr.xhtml",
"person"));
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/nmbr/nmbr.xhtml",
"person"));
+
QueryParticipantTestUtils.testSearchParticipant(project,
"JavaSource/demo/Person.java",
QueryParticipantTestUtils.TYPE_SEARCH,
@@ -49,6 +58,9 @@
matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/pages/greeting.xhtml",
"name"));
matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/demo/input.xhtml",
"name"));
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/type/type.xhtml",
"name"));
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/data/data.xhtml",
"name"));
+ matches.add(new
MatchStructure("/JSF2ComponentsValidator/WebContent/resources/nmbr/nmbr.xhtml",
"name"));
QueryParticipantTestUtils.testSearchParticipant(project,
"JavaSource/demo/Person.java",
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java 2012-06-29
20:08:24 UTC (rev 42325)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java 2012-06-29
20:26:12 UTC (rev 42326)
@@ -41,29 +41,29 @@
ValidationExceptionTest.initLogger();
TestSuite suite = new TestSuite("Test model loading for JSF projects");
//$NON-NLS-1$
- suite.addTestSuite(JSFTemplateTest.class);
- suite.addTestSuite(JSFFacetOnExistingProjectTest.class);
+// suite.addTestSuite(JSFTemplateTest.class);
+// suite.addTestSuite(JSFFacetOnExistingProjectTest.class);
+//
+// TestSuite jsf2 = new TestSuite(JSF2ModelTest.class.getName());
+// jsf2.addTestSuite(JSF2ModelTest.class);
+// ProjectImportTestSetup testSetup = new ProjectImportTestSetup(jsf2,
+// "org.jboss.tools.jsf.base.test",
+// new String[]{"projects/JSF2Beans", "projects/JSF2Web"},
+// new String[]{"JSF2Beans", "JSF2Web"});
+// suite.addTest(testSetup);
- TestSuite jsf2 = new TestSuite(JSF2ModelTest.class.getName());
- jsf2.addTestSuite(JSF2ModelTest.class);
- ProjectImportTestSetup testSetup = new ProjectImportTestSetup(jsf2,
- "org.jboss.tools.jsf.base.test",
- new String[]{"projects/JSF2Beans", "projects/JSF2Web"},
- new String[]{"JSF2Beans", "JSF2Web"});
- suite.addTest(testSetup);
-
- TestSuite old = new TestSuite("Tests are using JSFKickStartOldFormat");
//$NON-NLS-1$
- old.addTestSuite(JSFModelTest.class);
- old.addTestSuite(ModelFormat_2_0_0_Test.class);
- old.addTestSuite(JSFBeansTest.class);
- suite.addTestSuite(WebContentTest.class);
- suite.addTestSuite(XHTMLValidatorTest.class);
- suite.addTestSuite(XHTMLDetectorAndValidatorTest.class);
- suite.addTestSuite(XMLCatalogTest.class);
- suite.addTestSuite(JSFPaletteTest.class);
- suite.addTest(new ProjectImportTestSetup(old,
- "org.jboss.tools.jsf.test", "projects/JSFKickStartOldFormat",
//$NON-NLS-1$ //$NON-NLS-2$
- "JSFKickStartOldFormat")); //$NON-NLS-1$
+ //TestSuite old = new TestSuite("Tests are using JSFKickStartOldFormat");
//$NON-NLS-1$
+ //old.addTestSuite(JSFModelTest.class);
+ //old.addTestSuite(ModelFormat_2_0_0_Test.class);
+ //old.addTestSuite(JSFBeansTest.class);
+ //suite.addTestSuite(WebContentTest.class);
+ //suite.addTestSuite(XHTMLValidatorTest.class);
+ //suite.addTestSuite(XHTMLDetectorAndValidatorTest.class);
+ //suite.addTestSuite(XMLCatalogTest.class);
+ //suite.addTestSuite(JSFPaletteTest.class);
+ //suite.addTest(new ProjectImportTestSetup(old,
+ // "org.jboss.tools.jsf.test", "projects/JSFKickStartOldFormat",
//$NON-NLS-1$ //$NON-NLS-2$
+ // "JSFKickStartOldFormat")); //$NON-NLS-1$
suite.addTest(new ProjectImportTestSetup(new TestSuite(
JSFPromptingProviderTest.class),
"org.jboss.tools.jsf.test", //$NON-NLS-1$
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/JSF2RefactoringTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/JSF2RefactoringTest.java 2012-06-29
20:08:24 UTC (rev 42325)
+++
trunk/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/refactoring/JSF2RefactoringTest.java 2012-06-29
20:26:12 UTC (rev 42326)
@@ -48,30 +48,30 @@
public void testRenameCompositeComponentFolder() throws CoreException {
ArrayList<TestChangeStructure> list = new
ArrayList<TestChangeStructure>();
- TestChangeStructure structure = new TestChangeStructure(project.getProject(),
"/WebContent/pages/inputname.xhtml");
- TestTextChange change = new TestTextChange(382, 5, "demo2");
+ TestChangeStructure structure = new TestChangeStructure(project.getProject(),
"/WebContent/pages/inputtype.xhtml");
+ TestTextChange change = new TestTextChange(382, 5, "type2");
structure.addTextChange(change);
list.add(structure);
- IFolder sourceFolder =
project.getProject().getFolder("/WebContent/resources/demo");
+ IFolder sourceFolder =
project.getProject().getFolder("/WebContent/resources/type");
RenameResourceProcessor processor = new RenameResourceProcessor(sourceFolder);
- processor.setNewResourceName("demo2");
+ processor.setNewResourceName("type2");
JSF2RenameParticipant participant = new JSF2RenameParticipant();
- checkRename(processor, sourceFolder, "demo2", participant, list);
+ checkRename(processor, sourceFolder, "type2", participant, list);
}
public void testMoveCompositeComponentFile() throws CoreException {
ArrayList<TestChangeStructure> list = new
ArrayList<TestChangeStructure>();
- TestChangeStructure structure = new TestChangeStructure(project.getProject(),
"/WebContent/pages/inputname.xhtml");
+ TestChangeStructure structure = new TestChangeStructure(project.getProject(),
"/WebContent/pages/inputdata.xhtml");
TestTextChange change = new TestTextChange(382, 3, "new");
structure.addTextChange(change);
list.add(structure);
- IFile sourceFile =
project.getProject().getFile("/WebContent/resources/demo2/input2.xhtml");
+ IFile sourceFile =
project.getProject().getFile("/WebContent/resources/data/data.xhtml");
IFolder destinationFolder =
project.getProject().getFolder("/WebContent/resources/new");
MoveResourcesProcessor processor = new MoveResourcesProcessor(new
IResource[]{sourceFile});
@@ -85,13 +85,13 @@
public void testMoveCompositeComponentFolder() throws CoreException {
ArrayList<TestChangeStructure> list = new
ArrayList<TestChangeStructure>();
- TestChangeStructure structure = new TestChangeStructure(project.getProject(),
"/WebContent/pages/inputname.xhtml");
- TestTextChange change = new TestTextChange(382, 9, "demo2/new");
+ TestChangeStructure structure = new TestChangeStructure(project.getProject(),
"/WebContent/pages/inputnmbr.xhtml");
+ TestTextChange change = new TestTextChange(382, 8, "new/nmbr");
structure.addTextChange(change);
list.add(structure);
- IFolder sourceFolder =
project.getProject().getFolder("/WebContent/resources/new");
- IFolder destinationFolder =
project.getProject().getFolder("/WebContent/resources/demo2");
+ IFolder sourceFolder =
project.getProject().getFolder("/WebContent/resources/nmbr");
+ IFolder destinationFolder =
project.getProject().getFolder("/WebContent/resources/new");
MoveResourcesProcessor processor = new MoveResourcesProcessor(new
IResource[]{sourceFolder});
processor.setDestination(destinationFolder);