Author: dmaliarevich
Date: 2009-04-03 07:51:46 -0400 (Fri, 03 Apr 2009)
New Revision: 14491
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/taskId.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateFormattedText.xhtml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3697, JUnits for seam components were updated.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,12 +1,22 @@
-<!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:f="http://java.sun.com/jsf/core"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:s="http://jboss.com/products/seam/taglib">
- <head>
- </head>
- <body>
- <s:button id="id1">
- </s:button>
- </body>
+<!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:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:s="http://jboss.com/products/seam/taglib">
+ <head>
+ </head>
+ <body>
+ <h1>s:button</h1>
+ <s:button id="id1" value="Button">
+ </s:button>
+ <s:button id="id2" value="Button" disabled="true" >
+ </s:button>
+ <s:button id="id3" type="reset">
+ </s:button>
+ <s:button id="id4" type="submit">
+ </s:button>
+ <s:button id="id5" type="reset" value="Reset">
+ </s:button>
+ <s:button id="id6" image="img/dtpick.gif"
value="Button"></s:button>
+ </body>
</html>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/button.xhtml.xml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,5 +1,23 @@
<tests>
<test id="id1">
- <INPUT TYPE="button" VALUE=" "
STYLE="-moz-user-modify: read-only;"/>
+ <INPUT TYPE="button" VALUE="Button"
STYLE="-moz-user-modify: read-only;" />
</test>
+ <test id="id2">
+ <INPUT TYPE="button" DISABLED="disabled"
VALUE="Button"
+ STYLE="-moz-user-modify: read-only;" />
+ </test>
+ <test id="id3">
+ <INPUT TYPE="button" VALUE=" " STYLE="-moz-user-modify:
read-only;" />
+ </test>
+ <test id="id4">
+ <INPUT TYPE="button" VALUE=" " STYLE="-moz-user-modify:
read-only;" />
+ </test>
+ <test id="id5">
+ <INPUT TYPE="button" VALUE="Reset" STYLE="-moz-user-modify:
read-only;" />
+ </test>
+ <test id="id6">
+ <INPUT TYPE="image"
+ SRC="/.*ve/unresolved_image.gif/" STYLE="-moz-user-modify:
read-only;" />
+ </test>
+
</tests>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/cache.xhtml.xml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,11 +1,11 @@
<tests>
<test id="id1">
- <DIV STYLE="-moz-user-modify: read-write;">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify:
read-write;">
<H1 STYLE="-moz-user-modify: read-write;">
<SPAN CLASS="vpe-text">
s:cache
- </SPAN>
+ </SPAN>
</H1>
- </DIV>
+ </SPAN>
</test>
</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="id1">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify:
read-write;">
+ <SPAN CLASS="vpe-text">
+ 1
+ </SPAN>
+ </SPAN>
+ </test>
+</tests>
\ No newline at end of file
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/conversationId.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fileUpload.xhtml.xml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,7 +1,5 @@
<tests>
<test id="id1">
- <DIV STYLE="-moz-user-modify: read-only; cursor: pointer;">
- <INPUT TYPE="file" />
- </DIV>
+ <INPUT TYPE="file" STYLE="-moz-user-modify: read-only;"/>
</test>
</tests>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/fragment.xhtml.xml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,9 +1,9 @@
<tests>
<test id="id1">
- <DIV STYLE="-moz-user-modify: read-only;">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify:
read-write;">
<SPAN CLASS="vpe-text">
Current bid:
- </SPAN>
- </DIV>
+ </SPAN>
+ </SPAN>
</test>
</tests>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/link.xhtml.xml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,10 +1,5 @@
<tests>
<test id="id1">
- <SPAN
- STYLE="color: blue; text-decoration: underline; -moz-user-modify:
read-write;">
- Link
- <BR VPE:PSEUDO-ELEMENT="yes"
- STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"
/>
- </SPAN>
+ <A>Link</A>
</test>
</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/taskId.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/taskId.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,11 +1,11 @@
-<!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:f="http://java.sun.com/jsf/core"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:s="http://jboss.com/products/seam/taglib">
- <head>
- </head>
- <body>
- <s:validateAll id="id1"></s:validateAll>
- </body>
+<!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:f="http://java.sun.com/jsf/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:s="http://jboss.com/products/seam/taglib">
+ <head>
+ </head>
+ <body>
+ <s:validateAll id="id1">Validate All</s:validateAll>
+ </body>
</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml 2009-04-03
11:51:46 UTC (rev 14491)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="id1">
+ <SPAN CLASS="vpe-text" STYLE="-moz-user-modify:
read-write;">
+ <SPAN CLASS="vpe-text">
+ Validate All
+ </SPAN>
+ </SPAN>
+ </test>
+</tests>
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateAll.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateFormattedText.xhtml
===================================================================
(Binary files differ)
Property changes on:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/validateFormattedText.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2009-04-03
11:51:46 UTC (rev 14491)
@@ -23,7 +23,7 @@
}
public void testConversationId() throws Throwable {
- performInvisibleTagTest("components/conversationId.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ performContentTest("components/conversationId.xhtml"); //$NON-NLS-1$
//$NON-NLS-2$
}
public void testConvertDateTime() throws Throwable {
@@ -103,8 +103,14 @@
}
public void testValidateAll() throws Throwable {
- performInvisibleTagTest("components/validateAll.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ performContentTest("components/validateAll.xhtml"); //$NON-NLS-1$
//$NON-NLS-2$
}
-
+ public void testValidateFormattedText() throws Throwable{
+ performInvisibleTagTest("components/validateFormattedText.xhtml",
"id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testTaskId() throws Throwable{
+ performInvisibleTagTest("components/taskId.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
}
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java 2009-04-03
10:23:46 UTC (rev 14490)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java 2009-04-03
11:51:46 UTC (rev 14491)
@@ -1,155 +1,165 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at
http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jsf.vpe.seam.test;
-
-import org.eclipse.core.resources.IFile;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
-
-/**
- * Class for testing all Seam components
- *
- * @author dsakovich(a)exadel.com
- *
- */
-public class SeamComponentTest extends VpeTest {
-
- public SeamComponentTest(String name) {
- super(name);
- setCheckWarning(false);
- }
-
- public void testButton() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/button.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testCache() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/cache.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testConversationId() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/conversationId.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testConversationPropagation() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/conversationPropagation.xhtml",
SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testConvertDateTime() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/convertDateTime.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testConvertEntity() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/convertEntity.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testConvertEnum() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/convertEnum.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testDecorate() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/decorate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testDefaultAction() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/defaultAction.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testDiv() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/div.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testEnumItem() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/enumItem.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testFileUpload() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/fileUpload.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testFormattedText() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/formattedText.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testFragment() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/fragment.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testGraphicImage() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/graphicImage.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testLabel() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/label.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testLink() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/link.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testMessage() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testRemote() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/remote.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testSelectDate() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testSelectItems() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testValidate() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/validate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testSpan() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/span.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- public void testValidateAll() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/validateAll.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
- public void testAllComponentsOnSinglePage() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/seamtest.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.seam.test;
+
+import org.eclipse.core.resources.IFile;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+/**
+ * Class for testing all Seam components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class SeamComponentTest extends VpeTest {
+
+ public SeamComponentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ public void testButton() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/button.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testCache() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/cache.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testConversationId() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/conversationId.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testConversationPropagation() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/conversationPropagation.xhtml",
SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testConvertDateTime() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/convertDateTime.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testConvertEntity() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/convertEntity.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testConvertEnum() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/convertEnum.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testDecorate() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/decorate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testDefaultAction() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/defaultAction.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testDiv() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/div.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testEnumItem() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/enumItem.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testFileUpload() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/fileUpload.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testFormattedText() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/formattedText.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testFragment() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/fragment.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testGraphicImage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/graphicImage.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testLabel() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/label.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testLink() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/link.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testMessage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testRemote() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/remote.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testSelectDate() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testSelectItems() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/message.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testValidate() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/validate.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testSpan() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/span.xhtml", SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testValidateAll() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/validateAll.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testValidateFormattedText() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/validateFormattedText.xhtml",
SeamAllTests.IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ public void testTaskId() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/taskId.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+ public void testAllComponentsOnSinglePage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/seamtest.xhtml", SeamAllTests.IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+ }
+
+}