Author: dazarov
Date: 2008-01-11 12:52:44 -0500 (Fri, 11 Jan 2008)
New Revision: 5639
Added:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java
Removed:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsComponentTest.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-11
17:51:27 UTC (rev 5638)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsAllTests.java 2008-01-11
17:52:44 UTC (rev 5639)
@@ -30,10 +30,10 @@
TestSuite suite = new TestSuite("Tests for Vpe Struts components"); //
$NON-NLS-1$
// $JUnit-BEGIN$
- suite.addTestSuite(StrutsComponentTest.class);
+ suite.addTestSuite(StrutsHTMLComponentTest.class);
//cleanUpTests();
// $JUnit-END$
- return new
VpeTestSetup(suite,TestUtil.createImportBeanList(StrutsComponentTest.IMPORT_PROJECT_NAME,
StrutsTestPlugin.getPluginResourcePath()));
+ return new
VpeTestSetup(suite,TestUtil.createImportBeanList(StrutsHTMLComponentTest.IMPORT_PROJECT_NAME,
StrutsTestPlugin.getPluginResourcePath()));
}
Deleted:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsComponentTest.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsComponentTest.java 2008-01-11
17:51:27 UTC (rev 5638)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsComponentTest.java 2008-01-11
17:52:44 UTC (rev 5639)
@@ -1,77 +0,0 @@
-/*******************************************************************************
- * 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 all struts components
- *
- * @author sdzmitrovich
- *
- */
-public class StrutsComponentTest extends VpeTest {
-
- // import project name
- static final String IMPORT_PROJECT_NAME = "StrutsTest";
-
- public StrutsComponentTest(String name) {
- super(name);
- }
-
- /*
- * Struts HTML test cases
- */
-
- public void testBase() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/base.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testErrors() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/errors.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testFrame() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/frame.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testHtml() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testImage() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/image.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testImg() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/img.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testLink() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/link.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testRewrite() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/rewrite.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
- public void testMessages() throws Throwable {
- performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/messages.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
- }
-
-
-
-
-
-
-}
Copied:
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java
(from rev 5611,
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsComponentTest.java)
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java
(rev 0)
+++
trunk/struts/tests/org.jboss.tools.struts.vpe.struts.test/src/org/jboss/tools/struts/vpe/struts/test/StrutsHTMLComponentTest.java 2008-01-11
17:52:44 UTC (rev 5639)
@@ -0,0 +1,86 @@
+/*******************************************************************************
+ * 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 all struts components
+ *
+ * @author sdzmitrovich
+ *
+ */
+public class StrutsHTMLComponentTest extends VpeTest {
+
+ // import project name
+ static final String IMPORT_PROJECT_NAME = "StrutsTest";
+
+ public StrutsHTMLComponentTest(String name) {
+ super(name);
+ }
+
+ /*
+ * Struts HTML test cases
+ */
+
+ public void testBase() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/base.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testErrors() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/errors.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testFrame() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/frame.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testHtml() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/html.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testImage() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/image.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testImg() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/img.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testLink() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/link.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testRewrite() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/rewrite.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testMessages() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/messages.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testParameter() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/parameter.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testCookie() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/cookie.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ public void testHeader() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getComponentPath("components/html/header.jsp",
IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+
+
+}