Author: svasilyev
Date: 2008-02-21 08:07:03 -0500 (Thu, 21 Feb 2008)
New Revision: 6496
Added:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlTestPlugin.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPTestPlugin.java
Removed:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlTestPlugin.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPTestPlugin.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml
trunk/tests/features/org.jboss.tools.test.feature/feature.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/schema/vpe.tests.exsd
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllTests.java
Log:
JSP and HTML tests were updated according to their new location trunk\vpe\test.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml 2008-02-21 12:59:53
UTC (rev 6495)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml 2008-02-21 13:07:03
UTC (rev 6496)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.jsf.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.tests">
<tests
description="Facelets Tests"
name="Facelets Tests"
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml 2008-02-21 12:59:53 UTC
(rev 6495)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml 2008-02-21 13:07:03 UTC
(rev 6496)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.jsf.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.tests">
<tests
name="JSf Tests"
testSuite="org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests">
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml 2008-02-21 12:59:53
UTC (rev 6495)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml 2008-02-21 13:07:03
UTC (rev 6496)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.jsf.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.tests">
<tests
name="MyFaces Tests"
testSuite="org.jboss.tools.jsf.vpe.myfaces.test.MyFacesAllTests">
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml 2008-02-21 12:59:53
UTC (rev 6495)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml 2008-02-21 13:07:03
UTC (rev 6496)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.jsf.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.tests">
<tests
testSuite="org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests"
name="Tests For Rich Faces Components"/>
</extension>
Modified: trunk/tests/features/org.jboss.tools.test.feature/feature.xml
===================================================================
--- trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2008-02-21 12:59:53 UTC
(rev 6495)
+++ trunk/tests/features/org.jboss.tools.test.feature/feature.xml 2008-02-21 13:07:03 UTC
(rev 6496)
@@ -1,24 +1,24 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.jboss.tools.test_feature"
- label="Tools Tests"
- version="2.0.0">
-
- <description
url="http://www.jboss.org/tools">
- JBossTools unit tests feature
- </description>
-
- <copyright>
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.test_feature"
+ label="Tools Tests"
+ version="2.0.0">
+
+ <description
url="http://www.jboss.org/tools">
+ JBossTools unit tests feature
+ </description>
+
+ <copyright>
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
- </copyright>
-
- <license
url="http://www.eclipse.org/legal/epl-v10.html">
+Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ </copyright>
+
+ <license
url="http://www.eclipse.org/legal/epl-v10.html">
Eclipse Public License - v 1.0
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS
ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR
@@ -214,160 +214,160 @@
No party to this Agreement will bring a legal action under this
Agreement more than one year after the cause of action arose.
Each party waives its rights to a jury trial in any resulting
-litigation.
- </license>
-
- <plugin
- id="org.jboss.tools.common.kb.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.common.model.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.common.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.common.verification.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.text.ext.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.verification.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jst.web.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.tests"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.vpe.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jst.web.ui.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.seam.core.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.seam.ui.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.vpe.xulrunner.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.richfaces.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.facelets.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.jsf.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.seam.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.html.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.struts.vpe.struts.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.common.model.ui.test"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.jboss.tools.jst.jsp.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.jsf.vpe.jsp.test"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <plugin
- id="org.jboss.tools.vpe.ui.test"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
- <plugin
- id="org.jboss.tools.struts.vpe.struts"
- download-size="0"
- install-size="0"
- version="0.0.0"
- unpack="false"/>
-
-</feature>
+litigation.
+ </license>
+
+ <plugin
+ id="org.jboss.tools.common.kb.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.common.model.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.common.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.common.verification.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.text.ext.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.verification.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jst.web.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.tests"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.vpe.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jst.web.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.seam.core.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.seam.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.vpe.xulrunner.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.richfaces.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.facelets.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.jsf.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.jsf.vpe.seam.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.struts.vpe.struts.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.common.model.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.jst.jsp.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.vpe.ui.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.struts.vpe.struts"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.jboss.tools.vpe.html.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.jboss.tools.vpe.jsp.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+</feature>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2008-02-21 12:59:53
UTC (rev 6495)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2008-02-21 13:07:03
UTC (rev 6496)
@@ -3,7 +3,7 @@
Bundle-Name: Test Html Plug-in
Bundle-SymbolicName: org.jboss.tools.vpe.html.test;singleton:=true
Bundle-Version: 1.0.0
-Bundle-Activator: org.jboss.tools.jsf.vpe.html.test.HtmlTestPlugin
+Bundle-Activator: org.jboss.tools.vpe.html.test.HtmlTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.jboss.tools.vpe,
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml 2008-02-21 12:59:53 UTC (rev
6495)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml 2008-02-21 13:07:03 UTC (rev
6496)
@@ -2,11 +2,11 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.jsf.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.tests">
<tests
description="Tests for Html templates"
name="Tests for Html templates"
- testSuite="org.jboss.tools.jsf.vpe.html.test.HtmlAllTests">
+ testSuite="org.jboss.tools.vpe.html.test.HtmlAllTests">
</tests>
</extension>
Copied: trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test
(from rev 6493,
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/vpe/html/test)
Deleted:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/vpe/html/test/HtmlAllTests.java 2008-02-21
11:46:49 UTC (rev 6493)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -1,46 +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.jsf.vpe.html.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
-import org.jboss.tools.vpe.ui.test.beans.ImportBean;
-
-
-/**
- * Class for testing all Html components
- *
- * @author sdzmitrovich
- *
- */
-
-public class HtmlAllTests {
-
- public static Test suite() {
-
- TestSuite suite = new TestSuite("Tests for Vpe Jsf components"); //
$NON-NLS-1$
- // $JUnit-BEGIN$
- suite.addTestSuite(HtmlComponentTest.class);
-
- List<ImportBean> projectToImport = new ArrayList<ImportBean>();
- ImportBean importBean = new ImportBean();
- importBean.setImportProjectName(HtmlComponentTest.IMPORT_PROJECT_NAME);
- importBean.setImportProjectPath(HtmlTestPlugin.getPluginResourcePath());
- projectToImport.add(importBean);
- return new VpeTestSetup(suite,projectToImport);
- }
-
-}
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java
(from rev 6495,
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/vpe/html/test/HtmlAllTests.java)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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.vpe.html.test;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.ui.test.beans.ImportBean;
+
+
+/**
+ * Class for testing all Html components
+ *
+ * @author sdzmitrovich
+ *
+ */
+
+public class HtmlAllTests {
+
+ public static Test suite() {
+
+ TestSuite suite = new TestSuite("Tests for Vpe Jsf components"); //
$NON-NLS-1$
+ // $JUnit-BEGIN$
+ suite.addTestSuite(HtmlComponentTest.class);
+
+ List<ImportBean> projectToImport = new ArrayList<ImportBean>();
+ ImportBean importBean = new ImportBean();
+ importBean.setImportProjectName(HtmlComponentTest.IMPORT_PROJECT_NAME);
+ importBean.setImportProjectPath(HtmlTestPlugin.getPluginResourcePath());
+ projectToImport.add(importBean);
+ return new VpeTestSetup(suite,projectToImport);
+ }
+
+}
Deleted:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/vpe/html/test/HtmlComponentTest.java 2008-02-21
11:46:49 UTC (rev 6493)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -1,311 +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.jsf.vpe.html.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 html components
- *
- * @author Sergey Dzmitrovich
- *
- */
-public class HtmlComponentTest extends VpeTest {
-
- // import project name
- public static final String IMPORT_PROJECT_NAME = "htmlTest";
-
- public HtmlComponentTest(String name) {
- super(name);
- setCheckWarning(false);
- }
-
- /*
- * test for block html tags
- */
-
- public void testDiv() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/block/div.html", IMPORT_PROJECT_NAME));
- }
-
- public void testDl() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/block/dl.html", IMPORT_PROJECT_NAME));
- }
-
- public void testLists() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/block/lists.html", IMPORT_PROJECT_NAME));
- }
-
- public void testSpan() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/block/span.html", IMPORT_PROJECT_NAME));
- }
-
- /*
- * test for core html tags
- */
-
- public void testA() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/a.html", IMPORT_PROJECT_NAME));
- }
-
- public void testAddress() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/address.html", IMPORT_PROJECT_NAME));
- }
-
- public void testBasic() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/basic.html", IMPORT_PROJECT_NAME));
- }
-
- public void testImg() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/img.html", IMPORT_PROJECT_NAME));
- }
-
- public void testLink() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/link.html", IMPORT_PROJECT_NAME));
- }
-
- public void testMap() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/map.html", IMPORT_PROJECT_NAME));
- }
-
- public void testObject() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/object.html", IMPORT_PROJECT_NAME));
- }
-
- public void testStyle() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/style.html", IMPORT_PROJECT_NAME));
- }
-
- public void testTitle() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/core/title.html", IMPORT_PROJECT_NAME));
- }
-
- /*
- * test for form html tags
- */
-
- public void testButton() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/form/button.html", IMPORT_PROJECT_NAME));
- }
-
- public void testFieldset() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/form/fieldset.html", IMPORT_PROJECT_NAME));
- }
-
- public void testForm() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/form/form.html", IMPORT_PROJECT_NAME));
- }
-
- public void testInput() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/form/input.html", IMPORT_PROJECT_NAME));
- }
-
- public void testLabel() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/form/label.html", IMPORT_PROJECT_NAME));
- }
-
- public void testSelect() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/form/select.html", IMPORT_PROJECT_NAME));
- }
-
- public void testTextArea() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/form/textArea.html", IMPORT_PROJECT_NAME));
- }
-
- /*
- * test for frames html tags
- */
-
- public void testFrameset() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/frames/frameset.html", IMPORT_PROJECT_NAME));
- }
-
- public void testIframe() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/frames/iframe.html", IMPORT_PROJECT_NAME));
- }
-
- /*
- * test for scripts html tags
- */
-
- public void testScript() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/scripts/script.html", IMPORT_PROJECT_NAME));
- }
-
- /*
- * test for table html tags
- */
-
- public void testComplexTable() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/table/complex_table.html", IMPORT_PROJECT_NAME));
- }
-
- public void testTable() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/table/table.html", IMPORT_PROJECT_NAME));
- }
-
- /*
- * test for text html tags
- */
-
- public void testAbbr() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/abbr.html", IMPORT_PROJECT_NAME));
- }
-
- public void testAcronym() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/acronym.html", IMPORT_PROJECT_NAME));
- }
-
- public void testB() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/b.html", IMPORT_PROJECT_NAME));
- }
-
- public void testBig() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/big.html", IMPORT_PROJECT_NAME));
- }
-
- public void testBlockquote() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/blockquote.html", IMPORT_PROJECT_NAME));
- }
-
- public void testBr() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/br.html", IMPORT_PROJECT_NAME));
- }
-
- public void testCite() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/cite.html", IMPORT_PROJECT_NAME));
- }
-
- public void testCode() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/code.html", IMPORT_PROJECT_NAME));
- }
-
- public void testDel() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/del.html", IMPORT_PROJECT_NAME));
- }
-
- public void testDfn() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/dfn.html", IMPORT_PROJECT_NAME));
- }
-
- public void testEm() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/em.html", IMPORT_PROJECT_NAME));
- }
-
- public void testHr() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/hr.html", IMPORT_PROJECT_NAME));
- }
-
- public void testI() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/i.html", IMPORT_PROJECT_NAME));
- }
-
- public void testIns() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/ins.html", IMPORT_PROJECT_NAME));
- }
-
- public void testKbd() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/kbd.html", IMPORT_PROJECT_NAME));
- }
-
- public void testP() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/p.html", IMPORT_PROJECT_NAME));
- }
-
- public void testPre() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/pre.html", IMPORT_PROJECT_NAME));
- }
-
- public void testQ() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/q.html", IMPORT_PROJECT_NAME));
- }
-
- public void testSamp() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/samp.html", IMPORT_PROJECT_NAME));
- }
-
- public void testSmall() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/small.html", IMPORT_PROJECT_NAME));
- }
-
- public void testStrong() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/strong.html", IMPORT_PROJECT_NAME));
- }
-
- public void testSub() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/sub.html", IMPORT_PROJECT_NAME));
- }
-
- public void testSup() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/sup.html", IMPORT_PROJECT_NAME));
- }
-
- public void testTt() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/tt.html", IMPORT_PROJECT_NAME));
- }
-
- public void testVar() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text/var.html", IMPORT_PROJECT_NAME));
- }
-
-}
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
(from rev 6495,
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/vpe/html/test/HtmlComponentTest.java)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -0,0 +1,311 @@
+/*******************************************************************************
+ * 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.vpe.html.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 html components
+ *
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class HtmlComponentTest extends VpeTest {
+
+ // import project name
+ public static final String IMPORT_PROJECT_NAME = "htmlTest";
+
+ public HtmlComponentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ /*
+ * test for block html tags
+ */
+
+ public void testDiv() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/block/div.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testDl() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/block/dl.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testLists() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/block/lists.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testSpan() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/block/span.html", IMPORT_PROJECT_NAME));
+ }
+
+ /*
+ * test for core html tags
+ */
+
+ public void testA() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/a.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testAddress() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/address.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testBasic() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/basic.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testImg() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/img.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testLink() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/link.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testMap() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/map.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testObject() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/object.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testStyle() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/style.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testTitle() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/core/title.html", IMPORT_PROJECT_NAME));
+ }
+
+ /*
+ * test for form html tags
+ */
+
+ public void testButton() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/form/button.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testFieldset() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/form/fieldset.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testForm() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/form/form.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testInput() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/form/input.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testLabel() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/form/label.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testSelect() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/form/select.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testTextArea() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/form/textArea.html", IMPORT_PROJECT_NAME));
+ }
+
+ /*
+ * test for frames html tags
+ */
+
+ public void testFrameset() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/frames/frameset.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testIframe() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/frames/iframe.html", IMPORT_PROJECT_NAME));
+ }
+
+ /*
+ * test for scripts html tags
+ */
+
+ public void testScript() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/scripts/script.html", IMPORT_PROJECT_NAME));
+ }
+
+ /*
+ * test for table html tags
+ */
+
+ public void testComplexTable() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/table/complex_table.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testTable() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/table/table.html", IMPORT_PROJECT_NAME));
+ }
+
+ /*
+ * test for text html tags
+ */
+
+ public void testAbbr() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/abbr.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testAcronym() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/acronym.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testB() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/b.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testBig() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/big.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testBlockquote() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/blockquote.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testBr() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/br.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testCite() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/cite.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testCode() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/code.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testDel() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/del.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testDfn() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/dfn.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testEm() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/em.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testHr() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/hr.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testI() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/i.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testIns() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/ins.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testKbd() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/kbd.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testP() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/p.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testPre() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/pre.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testQ() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/q.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testSamp() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/samp.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testSmall() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/small.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testStrong() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/strong.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testSub() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/sub.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testSup() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/sup.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testTt() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/tt.html", IMPORT_PROJECT_NAME));
+ }
+
+ public void testVar() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text/var.html", IMPORT_PROJECT_NAME));
+ }
+
+}
Deleted:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlTestPlugin.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/vpe/html/test/HtmlTestPlugin.java 2008-02-21
11:46:49 UTC (rev 6493)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlTestPlugin.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -1,79 +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.jsf.vpe.html.test;
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class HtmlTestPlugin extends Plugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.tools.jsf.vpe.html.test";
-
- // The shared instance
- private static HtmlTestPlugin plugin;
-
- /**
- * The constructor
- */
- public HtmlTestPlugin() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static HtmlTestPlugin getDefault() {
- return plugin;
- }
-
- public static String getPluginResourcePath() {
- Bundle bundle = Platform.getBundle(PLUGIN_ID);
- URL url = null;
- try {
- url = bundle == null ? null : FileLocator.resolve(bundle
- .getEntry("/resources")); // $NON-NLS-1$
- } catch (Exception e) {
- url = bundle.getEntry("/resources"); // $NON-NLS-1$
- }
- return (url == null) ? null : url.getPath();
- }
-
-}
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlTestPlugin.java
(from rev 6495,
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/jsf/vpe/html/test/HtmlTestPlugin.java)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlTestPlugin.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlTestPlugin.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -0,0 +1,79 @@
+/*******************************************************************************
+* 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.vpe.html.test;
+
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class HtmlTestPlugin extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.vpe.html.test";
//$NON-NLS-1$
+
+ // The shared instance
+ private static HtmlTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public HtmlTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static HtmlTestPlugin getDefault() {
+ return plugin;
+ }
+
+ public static String getPluginResourcePath() {
+ Bundle bundle = Platform.getBundle(PLUGIN_ID);
+ URL url = null;
+ try {
+ url = bundle == null ? null : FileLocator.resolve(bundle
+ .getEntry("/resources")); // $NON-NLS-1$
+ } catch (Exception e) {
+ url = bundle.getEntry("/resources"); // $NON-NLS-1$
+ }
+ return (url == null) ? null : url.getPath();
+ }
+
+}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2008-02-21 12:59:53
UTC (rev 6495)
+++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2008-02-21 13:07:03
UTC (rev 6496)
@@ -3,7 +3,7 @@
Bundle-Name: Test Plug-in
Bundle-SymbolicName: org.jboss.tools.vpe.jsp.test;singleton:=true
Bundle-Version: 1.0.0
-Bundle-Activator: org.jboss.tools.jsf.vpe.jsp.test.JSPTestPlugin
+Bundle-Activator: org.jboss.tools.vpe.jsp.test.JSPTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.jboss.tools.vpe,
@@ -16,5 +16,5 @@
org.jboss.tools.vpe.xulrunner,
org.mozilla.xpcom
Eclipse-LazyStart: true
-Export-Package: org.jboss.tools.jsf.vpe.jsp.test
+Export-Package: org.jboss.tools.vpe.jsp.test
Bundle-ClassPath: jsp-tests.jar
Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml 2008-02-21 12:59:53 UTC (rev
6495)
+++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml 2008-02-21 13:07:03 UTC (rev
6496)
@@ -2,11 +2,11 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.jsf.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.tests">
<tests
description="JSP Tests"
name="JSP Tests"
- testSuite="org.jboss.tools.jsf.vpe.jsp.test.JSPAllTests">
+ testSuite="org.jboss.tools.vpe.jsp.test.JSPAllTests">
</tests>
</extension>
Copied: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test
(from rev 6493,
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test)
Deleted:
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java 2008-02-21
11:46:49 UTC (rev 6493)
+++
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * 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.jsp.test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
-import org.jboss.tools.vpe.ui.test.beans.ImportBean;
-
-public class JSPAllTests {
- public static Test suite() {
-
- TestSuite suite = new TestSuite("Tests for Vpe JSP components");
//$NON-NLS-1$
- // $JUnit-BEGIN$
-
- suite.addTestSuite(JSPComponentTest.class);
-
- // $JUnit-END$
- List<ImportBean> importProjects = new ArrayList<ImportBean>();
- ImportBean importBean = new ImportBean();
- importBean.setImportProjectName(JSPComponentTest.IMPORT_PROJECT_NAME);
- importBean.setImportProjectPath(JSPTestPlugin.getPluginResourcePath());
- importProjects.add(importBean);
- return new VpeTestSetup(suite,importProjects);
-
- }
-}
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java
(from rev 6495,
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * 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.vpe.jsp.test;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.ui.test.beans.ImportBean;
+
+public class JSPAllTests {
+ public static Test suite() {
+
+ TestSuite suite = new TestSuite("Tests for Vpe JSP components");
//$NON-NLS-1$
+ // $JUnit-BEGIN$
+
+ suite.addTestSuite(JSPComponentTest.class);
+
+ // $JUnit-END$
+ List<ImportBean> importProjects = new ArrayList<ImportBean>();
+ ImportBean importBean = new ImportBean();
+ importBean.setImportProjectName(JSPComponentTest.IMPORT_PROJECT_NAME);
+ importBean.setImportProjectPath(JSPTestPlugin.getPluginResourcePath());
+ importProjects.add(importBean);
+ return new VpeTestSetup(suite,importProjects);
+
+ }
+}
Deleted:
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java 2008-02-21
11:46:49 UTC (rev 6493)
+++
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -1,289 +0,0 @@
-/*******************************************************************************
- * 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.jsp.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 jsp components
- *
- * @author dsakovich(a)exadel.com
- *
- */
-public class JSPComponentTest extends VpeTest {
-
- // import project name
- public static final String IMPORT_PROJECT_NAME = "jspTest"; //$NON-NLS-1$
-
- public JSPComponentTest(String name) {
- super(name);
- setCheckWarning(false);
- }
-
- /**
- * Test for jsp:declaration
- *
- * @throws Throwable
- */
- public void testDeclaration() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/declaration.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- /**
- * Test for jsp:expression
- *
- * @throws Throwable
- */
- public void testExpression() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/expression.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- /**
- * Test for jsp:scriptlet
- *
- * @throws Throwable
- */
- public void testScriptlet() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/scriptlet.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- /**
- * Test for jsp:directive.attribute
- *
- * @throws Throwable
- */
- public void testDirectiveAttribute() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
- }
-
- /**
- * Test for jsp:directive.include
- *
- * @throws Throwable
- */
- public void testDirectiveInclude() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/directive_include_absolute.jsp", IMPORT_PROJECT_NAME));
//$NON-NLS-1$
-
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/directive_include_relative.jsp", IMPORT_PROJECT_NAME));
//$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:include
- *
- * @throws Throwable
- */
- public void testInclude() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/include_absolute.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/include_relative.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:directive.page
- *
- * @throws Throwable
- */
- public void testDirectivePage() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/directive_page.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:directive.tag
- *
- * @throws Throwable
- */
- public void testDirectiveTag() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/directive_tag.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:directive.taglib
- *
- * @throws Throwable
- */
- public void testDirectiveTaglib() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/directive_taglib.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:directive.variable
- *
- * @throws Throwable
- */
- public void testDirectiveVariable() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:attribute
- *
- * @throws Throwable
- */
- public void testAttribute() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/attribute.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:body
- *
- * @throws Throwable
- */
- public void testBody() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/body.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:element
- *
- * @throws Throwable
- */
- public void testElement() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/element.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:doBody
- *
- * @throws Throwable
- */
- public void testDoBody() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "../WEB-INF/tags/double.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:forward
- *
- * @throws Throwable
- */
- public void testForward() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/forward.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:getProperty
- *
- * @throws Throwable
- */
- public void testGetProperty() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/get_property.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:invoke
- *
- * @throws Throwable
- */
- public void testInvoke() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:output
- *
- * @throws Throwable
- */
- public void testOutput() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/output.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:plugin
- *
- * @throws Throwable
- */
- public void testPlugin() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/plugin.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:root
- *
- * @throws Throwable
- */
- public void testRoot() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/root.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:setProperty
- *
- * @throws Throwable
- */
- public void testSetProperty() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/set_property.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:text
- *
- * @throws Throwable
- */
- public void testText() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/text.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
- /**
- * Test for jsp:useBean
- *
- * @throws Throwable
- */
- public void testUseBean() throws Throwable {
- performTestForVpeComponent((IFile) TestUtil.getComponentPath(
- "components/useBean.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
-
- }
-
-}
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java
(from rev 6495,
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -0,0 +1,289 @@
+/*******************************************************************************
+ * 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.vpe.jsp.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 jsp components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class JSPComponentTest extends VpeTest {
+
+ // import project name
+ public static final String IMPORT_PROJECT_NAME = "jspTest"; //$NON-NLS-1$
+
+ public JSPComponentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ /**
+ * Test for jsp:declaration
+ *
+ * @throws Throwable
+ */
+ public void testDeclaration() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/declaration.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:expression
+ *
+ * @throws Throwable
+ */
+ public void testExpression() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/expression.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:scriptlet
+ *
+ * @throws Throwable
+ */
+ public void testScriptlet() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/scriptlet.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:directive.attribute
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveAttribute() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:directive.include
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveInclude() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_include_absolute.jsp", IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_include_relative.jsp", IMPORT_PROJECT_NAME));
//$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:include
+ *
+ * @throws Throwable
+ */
+ public void testInclude() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/include_absolute.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/include_relative.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.page
+ *
+ * @throws Throwable
+ */
+ public void testDirectivePage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_page.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.tag
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveTag() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_tag.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.taglib
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveTaglib() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_taglib.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.variable
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveVariable() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:attribute
+ *
+ * @throws Throwable
+ */
+ public void testAttribute() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/attribute.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:body
+ *
+ * @throws Throwable
+ */
+ public void testBody() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/body.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:element
+ *
+ * @throws Throwable
+ */
+ public void testElement() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/element.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:doBody
+ *
+ * @throws Throwable
+ */
+ public void testDoBody() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/double.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:forward
+ *
+ * @throws Throwable
+ */
+ public void testForward() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/forward.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:getProperty
+ *
+ * @throws Throwable
+ */
+ public void testGetProperty() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/get_property.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:invoke
+ *
+ * @throws Throwable
+ */
+ public void testInvoke() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:output
+ *
+ * @throws Throwable
+ */
+ public void testOutput() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/output.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:plugin
+ *
+ * @throws Throwable
+ */
+ public void testPlugin() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/plugin.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:root
+ *
+ * @throws Throwable
+ */
+ public void testRoot() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/root.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:setProperty
+ *
+ * @throws Throwable
+ */
+ public void testSetProperty() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/set_property.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:text
+ *
+ * @throws Throwable
+ */
+ public void testText() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:useBean
+ *
+ * @throws Throwable
+ */
+ public void testUseBean() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/useBean.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+
+ }
+
+}
Deleted:
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPTestPlugin.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java 2008-02-21
11:46:49 UTC (rev 6493)
+++
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPTestPlugin.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -1,79 +0,0 @@
-/*******************************************************************************
- * 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.jsp.test;
-
-import java.net.URL;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.Platform;
-import org.jboss.tools.common.log.BaseUIPlugin;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class JSPTestPlugin extends BaseUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.tools.jsf.vpe.jsp.test";
//$NON-NLS-1$
-
- // The shared instance
- private static JSPTestPlugin plugin;
-
- /**
- * The constructor
- */
- public JSPTestPlugin() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static JSPTestPlugin getDefault() {
- return plugin;
- }
-
- public static String getPluginResourcePath() {
- Bundle bundle = Platform.getBundle(PLUGIN_ID);
- URL url = null;
- try {
- url = bundle == null ? null : FileLocator.resolve(bundle
- .getEntry("/resources")); //$NON-NLS-1$
- } catch (Exception e) {
- url = bundle.getEntry("/resources"); //$NON-NLS-1$
- }
- return (url == null) ? null : url.getPath();
- }
-
-}
Copied:
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPTestPlugin.java
(from rev 6495,
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java)
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPTestPlugin.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPTestPlugin.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -0,0 +1,79 @@
+/*******************************************************************************
+ * 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.vpe.jsp.test;
+
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class JSPTestPlugin extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.vpe.jsp.test";
//$NON-NLS-1$
+
+ // The shared instance
+ private static JSPTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public JSPTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static JSPTestPlugin getDefault() {
+ return plugin;
+ }
+
+ public static String getPluginResourcePath() {
+ Bundle bundle = Platform.getBundle(PLUGIN_ID);
+ URL url = null;
+ try {
+ url = bundle == null ? null : FileLocator.resolve(bundle
+ .getEntry("/resources")); //$NON-NLS-1$
+ } catch (Exception e) {
+ url = bundle.getEntry("/resources"); //$NON-NLS-1$
+ }
+ return (url == null) ? null : url.getPath();
+ }
+
+}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml 2008-02-21 12:59:53 UTC (rev
6495)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml 2008-02-21 13:07:03 UTC (rev
6496)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
- <extension-point id="org.jboss.tools.jsf.vpe.ui.tests" name="Visual
Page Editor Junit Test" schema="schema/vpe.tests.exsd"/>
+ <extension-point id="org.jboss.tools.vpe.ui.tests" name="Visual Page
Editor Junit Test" schema="schema/vpe.tests.exsd"/>
</plugin>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/schema/vpe.tests.exsd
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/schema/vpe.tests.exsd 2008-02-21 12:59:53
UTC (rev 6495)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/schema/vpe.tests.exsd 2008-02-21 13:07:03
UTC (rev 6496)
@@ -1,9 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
-<schema targetNamespace="org.jboss.tools.jsf.vpe.ui.test">
+<schema targetNamespace="org.jboss.tools.vpe.ui.test">
<annotation>
<appInfo>
- <meta.schema plugin="org.jboss.tools.jsf.vpe.ui.test"
id="vpe.tests" name="Visual Editor Tests"/>
+ <meta.schema plugin="org.jboss.tools.vpe.ui.test"
id="vpe.tests" name="Visual Editor Tests"/>
</appInfo>
<documentation>
[Enter description of this extension point.]
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2008-02-21
12:59:53 UTC (rev 6495)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -37,9 +37,9 @@
*/
public class TestUtil {
- private static final String COMPONENTS_PATH = "WebContent/pages"; //
$NON-NLS-1$
+ private static final String COMPONENTS_PATH = "WebContent/pages";
//$NON-NLS-1$
- private static final String WEBCONTENT_PATH = "WebContent"; // $NON-NLS-1$
+ private static final String WEBCONTENT_PATH = "WebContent"; //$NON-NLS-1$
@SuppressWarnings("restriction")
static void importProjectIntoWorkspace(String path, String projectName) {
@@ -59,7 +59,7 @@
// need to remove from imported project "svn" files
List<String> unimportedFiles = new ArrayList<String>();
- unimportedFiles.add(".svn");
+ unimportedFiles.add(".svn"); //$NON-NLS-1$
importProvider.setUnimportedFiles(unimportedFiles);
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllTests.java 2008-02-21
12:59:53 UTC (rev 6495)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllTests.java 2008-02-21
13:07:03 UTC (rev 6496)
@@ -28,7 +28,7 @@
*/
public class VpeAllTests {
- public static final String VPE_TEST_EXTENTION_POINT_ID =
"org.jboss.tools.jsf.vpe.ui.tests"; //$NON-NLS-1$
+ public static final String VPE_TEST_EXTENTION_POINT_ID =
"org.jboss.tools.vpe.ui.tests"; //$NON-NLS-1$
public static final String TEST_SUITE_PARAM = "testSuite"; //$NON-NLS-1$