Author: dazarov
Date: 2008-01-14 11:14:07 -0500 (Mon, 14 Jan 2008)
New Revision: 5664
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/form/
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/resources/StrutsTest/WebContent/pages/components/nested/
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsNestedComponentTest.java
Modified:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsAllTests.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1565
Modified:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsAllTests.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsAllTests.java 2008-01-14
14:28:00 UTC (rev 5663)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsAllTests.java 2008-01-14
16:14:07 UTC (rev 5664)
@@ -33,6 +33,8 @@
suite.addTestSuite(StrutsHTMLComponentTest.class);
suite.addTestSuite(StrutsBeanComponentTest.class);
suite.addTestSuite(StrutsLogicComponentTest.class);
+ suite.addTestSuite(StrutsFormComponentTest.class);
+ suite.addTestSuite(StrutsNestedComponentTest.class);
//cleanUpTests();
// $JUnit-END$
return new
VpeTestSetup(suite,TestUtil.createImportBeanList(StrutsHTMLComponentTest.IMPORT_PROJECT_NAME,
StrutsTestPlugin.getPluginResourcePath()));
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsFormComponentTest.java 2008-01-14
16:14:07 UTC (rev 5664)
@@ -0,0 +1,87 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.struts.vpe.struts.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 form struts components
+ *
+ * @author dazarov
+ *
+ */
+public class StrutsFormComponentTest extends VpeTest {
+
+ // import project name
+ static final String IMPORT_PROJECT_NAME = "StrutsTest";
+
+ public StrutsFormComponentTest(String name) {
+ super(name);
+ }
+
+ /*
+ * Struts Form test cases
+ */
+
+ public void testCancel() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/cancel.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testCheckbox() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/checkbox.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testFile() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/file.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testForm() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/form.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testHidden() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/hidden.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testMultibox() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/multibox.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testOption() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/option.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testOptions() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/options.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testRadio() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/radio.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testReset() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/reset.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testSelect() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/select.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testSubmit() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/submit.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testText() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/form/text.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+}
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsNestedComponentTest.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsNestedComponentTest.java
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsNestedComponentTest.java 2008-01-14
16:14:07 UTC (rev 5664)
@@ -0,0 +1,55 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.struts.vpe.struts.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 nested struts components
+ *
+ * @author dazarov
+ *
+ */
+public class StrutsNestedComponentTest extends VpeTest {
+
+ // import project name
+ static final String IMPORT_PROJECT_NAME = "StrutsTest";
+
+ public StrutsNestedComponentTest(String name) {
+ super(name);
+ }
+
+ /*
+ * Struts Nested test cases
+ */
+
+ public void testNest() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/nested/nest.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testRoot() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/nested/root.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testSelect() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/nested/select.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testText() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/nested/text.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testWriteNesting() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/nested/writeNesting.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+}