Author: yradtsevich
Date: 2011-03-28 06:25:20 -0400 (Mon, 28 Mar 2011)
New Revision: 30062
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllImportantTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllImportantTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllImportantTests.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllImportantTests.java
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllImportantTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllImportantTests.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd
trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml
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.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
Log:
https://issues.jboss.org/browse/JBIDE-8600 : Speed up executing of VPE tests
- the VPE tests that are important to be run every time are separated into
*AllImportantTests test suites. The class org.jboss.tools.vpe.ui.test.VpeAllImportantTests
has to be used to run all tests of this kind now.
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 2011-03-28 09:49:10 UTC
(rev 30061)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml 2011-03-28 10:25:20 UTC
(rev 30062)
@@ -5,7 +5,8 @@
point="org.jboss.tools.vpe.ui.test">
<tests
name="JsfAllTests"
- testSuite="org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests"/>
+ testSuite="org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests"
+
importantTestSuite="org.jboss.tools.jsf.vpe.jsf.test.JsfAllImportantTests"/>
<testProject
name="jsfTest"
path="resources/jsfTest"/>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllImportantTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllImportantTests.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllImportantTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -0,0 +1,198 @@
+package org.jboss.tools.jsf.vpe.jsf.test;
+
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.ChangeMessageBundleTest_JBIDE5818;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.ContextMenuDoubleInsertionTest_JBIDE3888;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.EditFontFamilyTest_JBIDE5872;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.ExceptionInVPEComments_JBIDE5143;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.FacetProcessingTest;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1105Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1460Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1479Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1494Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1615Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1720Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1744Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1805Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2010Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2119Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2219Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2297Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2354Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2434Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2505Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2526Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2550Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2582Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2584Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2594Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2624Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2774Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2828Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2979Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3030Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3127Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3144Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3163Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3197Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3247Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3376Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3396Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3441Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3473Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3482Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3519Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3617Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3632Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3650Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3734Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE3969Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4037Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4179Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4337Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4373Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4509Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4510Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE4534Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE5920Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE675Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE788Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE924Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JSF2ValidatorTest;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide1467Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide1501Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide1568Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide1718Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide2170Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JsfJbide2362Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.MessageResolutionInPreviewTabTest;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.MozDirtyTest_JBIDE5105;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.NullPointerWithStyleProperty_JBIDE5193;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.OpenOnCssClassTest_JBIDE4775;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.OpenOnInJarPackageFragment_JBIDE5682;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.OpenOnInsideJspRoot_JBIDE4852;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.OpenOnJsf20Test_JBIDE5382;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.OpenOnTLDPackedInJar_JBIDE5693;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.PreferencesForEditors_JBIDE5692;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.RefreshBundles_JBIDE5460;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.RenderFacetAndInsertChildrenTest;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.SelectAllAndCut_JBIDE4853;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.SelectWholeElement_JBIDE4713;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.SourceDomUtilTest;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.TestContextPathResolution;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.TestFViewLocaleAttribute_JBIDE5218;
+import
org.jboss.tools.jsf.vpe.jsf.test.jbide.TestForUsingComponentsLibrariesWithDefaultNamespace;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.TestOpenOnForXhtmlFiles_JBIDE5577;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.UnclosedELExpressionTest;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.VPERefreshTest;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.VisualRefreshComment_JBIDE6067;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.VpeI18nTest_JBIDE4887;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.XulRunnerVpeUtilsTest;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Test suite containing all important JSP tests
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class JsfAllImportantTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(JsfAllImportantTests.class.getName());
+ //$JUnit-BEGIN$
+ suite.addTestSuite(SourceDomUtilTest.class);
+ suite.addTestSuite(XulRunnerVpeUtilsTest.class);
+ suite.addTestSuite(JSF2ValidatorTest.class);
+ suite.addTestSuite(UnclosedELExpressionTest.class);
+ suite.addTestSuite(TestContextPathResolution.class);
+ suite.addTestSuite(JBIDE5920Test.class);
+ suite.addTestSuite(RenderFacetAndInsertChildrenTest.class);
+ suite.addTestSuite(EditFontFamilyTest_JBIDE5872.class);
+ suite.addTestSuite(ChangeMessageBundleTest_JBIDE5818.class);
+ suite.addTestSuite(TestForUsingComponentsLibrariesWithDefaultNamespace.class);
+// suite.addTestSuite(EditingSPecialSymbolsVPE_JBIDE3810.class);
+ suite.addTestSuite(OpenOnJsf20Test_JBIDE5382.class);
+ suite.addTestSuite(MozDirtyTest_JBIDE5105.class);
+ suite.addTestSuite(VpeI18nTest_JBIDE4887.class);
+ suite.addTestSuite(JBIDE3519Test.class);
+ suite.addTestSuite(ContextMenuDoubleInsertionTest_JBIDE3888.class);
+ suite.addTestSuite(SelectAllAndCut_JBIDE4853.class);
+ suite.addTestSuite(SelectWholeElement_JBIDE4713.class);
+ suite.addTestSuite(JBIDE4037Test.class);
+ suite.addTestSuite(JBIDE3734Test.class);
+ suite.addTestSuite(JBIDE3617Test.class);
+ suite.addTestSuite(JBIDE3473Test.class);
+ suite.addTestSuite(JBIDE3441Test.class);
+ suite.addTestSuite(JsfJbide1467Test.class);
+ suite.addTestSuite(JsfJbide1501Test.class);
+ suite.addTestSuite(JsfJbide1568Test.class);
+ suite.addTestSuite(JBIDE1615Test.class);
+ suite.addTestSuite(JBIDE1479Test.class);
+ suite.addTestSuite(JBIDE788Test.class);
+ suite.addTestSuite(JBIDE1105Test.class);
+ suite.addTestSuite(JBIDE1744Test.class);
+ suite.addTestSuite(JBIDE1460Test.class);
+ suite.addTestSuite(JBIDE1720Test.class);
+ suite.addTestSuite(JsfJbide1718Test.class);
+ suite.addTestSuite(JBIDE1494Test.class);
+ suite.addTestSuite(JBIDE2297Test.class);
+ suite.addTestSuite(JsfJbide2170Test.class);
+ suite.addTestSuite(JBIDE2434Test.class);
+ suite.addTestSuite(JsfJbide2362Test.class);
+ suite.addTestSuite(JBIDE2119Test.class);
+ suite.addTestSuite(JBIDE2219Test.class);
+ suite.addTestSuite(JBIDE2505Test.class);
+ suite.addTestSuite(JBIDE2584Test.class);
+ suite.addTestSuite(ElPreferencesTestCase.class);
+ suite.addTestSuite(JBIDE2010Test.class);
+ suite.addTestSuite(JBIDE2582Test.class);
+ suite.addTestSuite(JBIDE2594Test.class);
+ suite.addTestSuite(JBIDE924Test.class);
+ suite.addTestSuite(JBIDE2526Test.class);
+ suite.addTestSuite(JBIDE2624Test.class);
+ suite.addTestSuite(JBIDE1805Test.class);
+ suite.addTestSuite(JBIDE2774Test.class);
+ suite.addTestSuite(JBIDE2828Test.class);
+ suite.addTestSuite(JBIDE3030Test.class);
+ suite.addTestSuite(JBIDE2979Test.class);
+ suite.addTestSuite(JBIDE3127Test.class);
+ suite.addTestSuite(JBIDE3144Test.class);
+ suite.addTestSuite(JBIDE2354Test.class);
+ suite.addTestSuite(JBIDE3163Test.class);
+ suite.addTestSuite(JBIDE3376Test.class);
+ suite.addTestSuite(JBIDE3396Test.class);
+ suite.addTestSuite(JBIDE3482Test.class);
+ suite.addTestSuite(JBIDE3632Test.class);
+ suite.addTestSuite(JBIDE3650Test.class);
+ suite.addTestSuite(JBIDE3197Test.class);
+ suite.addTestSuite(JBIDE4373Test.class);
+ suite.addTestSuite(JBIDE675Test.class);
+ suite.addTestSuite(JBIDE3969Test.class);
+ suite.addTestSuite(JBIDE4337Test.class);
+ suite.addTestSuite(JBIDE4179Test.class);
+ suite.addTestSuite(JBIDE4509Test.class);
+ suite.addTestSuite(JBIDE4510Test.class);
+ suite.addTestSuite(JBIDE4534Test.class);
+ suite.addTestSuite(JBIDE3247Test.class);
+ suite.addTestSuite(JBIDE2550Test.class);
+ suite.addTestSuite(OpenOnCssClassTest_JBIDE4775.class);
+ suite.addTestSuite(VPERefreshTest.class);
+ suite.addTestSuite(OpenOnInsideJspRoot_JBIDE4852.class);
+ suite.addTestSuite(NullPointerWithStyleProperty_JBIDE5193.class);
+ suite.addTestSuite(TestFViewLocaleAttribute_JBIDE5218.class);
+ suite.addTestSuite(TestOpenOnForXhtmlFiles_JBIDE5577.class);
+ suite.addTestSuite(OpenOnInJarPackageFragment_JBIDE5682.class);
+ suite.addTestSuite(MessageResolutionInPreviewTabTest.class);
+ suite.addTestSuite(OpenOnTLDPackedInJar_JBIDE5693.class);
+ suite.addTestSuite(PreferencesForEditors_JBIDE5692.class);
+ suite.addTestSuite(FacetProcessingTest.class);
+ suite.addTestSuite(RefreshBundles_JBIDE5460.class);
+ suite.addTestSuite(ExceptionInVPEComments_JBIDE5143.class);
+ suite.addTestSuite(VisualRefreshComment_JBIDE6067.class);
+
+ //$JUnit-END$
+ return suite;
+ }
+
+}
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2011-03-28
09:49:10 UTC (rev 30061)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -130,99 +130,8 @@
*/
suite.addTestSuite(JsfComponentContentTest.class) ;
suite.addTestSuite(Jsf20ComponentContentTest.class);
- /*
- * Other tests
- */
- suite.addTestSuite(SourceDomUtilTest.class);
- suite.addTestSuite(XulRunnerVpeUtilsTest.class);
- suite.addTestSuite(JSF2ValidatorTest.class);
- suite.addTestSuite(UnclosedELExpressionTest.class);
- suite.addTestSuite(TestContextPathResolution.class);
- suite.addTestSuite(JBIDE5920Test.class);
- suite.addTestSuite(RenderFacetAndInsertChildrenTest.class);
- suite.addTestSuite(EditFontFamilyTest_JBIDE5872.class);
- suite.addTestSuite(ChangeMessageBundleTest_JBIDE5818.class);
- suite.addTestSuite(TestForUsingComponentsLibrariesWithDefaultNamespace.class);
-// suite.addTestSuite(EditingSPecialSymbolsVPE_JBIDE3810.class);
- suite.addTestSuite(OpenOnJsf20Test_JBIDE5382.class);
- suite.addTestSuite(MozDirtyTest_JBIDE5105.class);
- suite.addTestSuite(VpeI18nTest_JBIDE4887.class);
- suite.addTestSuite(JBIDE3519Test.class);
- suite.addTestSuite(ContextMenuDoubleInsertionTest_JBIDE3888.class);
- suite.addTestSuite(SelectAllAndCut_JBIDE4853.class);
- suite.addTestSuite(SelectWholeElement_JBIDE4713.class);
- suite.addTestSuite(JBIDE4037Test.class);
- suite.addTestSuite(JBIDE3734Test.class);
- suite.addTestSuite(JBIDE3617Test.class);
- suite.addTestSuite(JBIDE3473Test.class);
- suite.addTestSuite(JBIDE3441Test.class);
- suite.addTestSuite(JsfJbide1467Test.class);
- suite.addTestSuite(JsfJbide1501Test.class);
- suite.addTestSuite(JsfJbide1568Test.class);
- suite.addTestSuite(JBIDE1615Test.class);
- suite.addTestSuite(JBIDE1479Test.class);
- suite.addTestSuite(JBIDE788Test.class);
- suite.addTestSuite(JBIDE1105Test.class);
- suite.addTestSuite(JBIDE1744Test.class);
- suite.addTestSuite(JBIDE1460Test.class);
- suite.addTestSuite(JBIDE1720Test.class);
- suite.addTestSuite(JsfJbide1718Test.class);
- suite.addTestSuite(JBIDE1494Test.class);
- suite.addTestSuite(JBIDE2297Test.class);
- suite.addTestSuite(JsfJbide2170Test.class);
- suite.addTestSuite(JBIDE2434Test.class);
- suite.addTestSuite(JsfJbide2362Test.class);
- suite.addTestSuite(JBIDE2119Test.class);
- suite.addTestSuite(JBIDE2219Test.class);
- suite.addTestSuite(JBIDE2505Test.class);
- suite.addTestSuite(JBIDE2584Test.class);
- suite.addTestSuite(ElPreferencesTestCase.class);
- suite.addTestSuite(JBIDE2010Test.class);
- suite.addTestSuite(JBIDE2582Test.class);
- suite.addTestSuite(JBIDE2594Test.class);
- suite.addTestSuite(JBIDE924Test.class);
- suite.addTestSuite(JBIDE2526Test.class);
- suite.addTestSuite(JBIDE2624Test.class);
- suite.addTestSuite(JBIDE1805Test.class);
- suite.addTestSuite(JBIDE2774Test.class);
- suite.addTestSuite(JBIDE2828Test.class);
- suite.addTestSuite(JBIDE3030Test.class);
- suite.addTestSuite(JBIDE2979Test.class);
- suite.addTestSuite(JBIDE3127Test.class);
- suite.addTestSuite(JBIDE3144Test.class);
- suite.addTestSuite(JBIDE2354Test.class);
- suite.addTestSuite(JBIDE3163Test.class);
- suite.addTestSuite(JBIDE3376Test.class);
- suite.addTestSuite(JBIDE3396Test.class);
- suite.addTestSuite(JBIDE3482Test.class);
- suite.addTestSuite(JBIDE3632Test.class);
- suite.addTestSuite(JBIDE3650Test.class);
- suite.addTestSuite(JBIDE3197Test.class);
- suite.addTestSuite(JBIDE4373Test.class);
- suite.addTestSuite(JBIDE675Test.class);
- suite.addTestSuite(JBIDE3969Test.class);
- suite.addTestSuite(JBIDE4337Test.class);
- suite.addTestSuite(JBIDE4179Test.class);
- suite.addTestSuite(JBIDE4509Test.class);
- suite.addTestSuite(JBIDE4510Test.class);
- suite.addTestSuite(JBIDE4534Test.class);
- suite.addTestSuite(JBIDE3247Test.class);
- suite.addTestSuite(JBIDE2550Test.class);
- suite.addTestSuite(OpenOnCssClassTest_JBIDE4775.class);
- suite.addTestSuite(VPERefreshTest.class);
- suite.addTestSuite(OpenOnInsideJspRoot_JBIDE4852.class);
- suite.addTestSuite(NullPointerWithStyleProperty_JBIDE5193.class);
- suite.addTestSuite(TestFViewLocaleAttribute_JBIDE5218.class);
- suite.addTestSuite(TestOpenOnForXhtmlFiles_JBIDE5577.class);
- suite.addTestSuite(OpenOnInJarPackageFragment_JBIDE5682.class);
- suite.addTestSuite(MessageResolutionInPreviewTabTest.class);
- suite.addTestSuite(OpenOnTLDPackedInJar_JBIDE5693.class);
- suite.addTestSuite(PreferencesForEditors_JBIDE5692.class);
- suite.addTestSuite(FacetProcessingTest.class);
- suite.addTestSuite(RefreshBundles_JBIDE5460.class);
- suite.addTestSuite(ExceptionInVPEComments_JBIDE5143.class);
- suite.addTestSuite(VisualRefreshComment_JBIDE6067.class);
-
+ suite.addTest(JsfAllImportantTests.suite());
+
// $JUnit-END$
return new VpeTestSetup(suite);
}
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 2011-03-28 09:49:10
UTC (rev 30061)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml 2011-03-28 10:25:20
UTC (rev 30062)
@@ -5,6 +5,7 @@
point="org.jboss.tools.vpe.ui.test">
<tests
testSuite="org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests"
+ importantTestSuite="org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllImportantTests"
name="Tests For Rich Faces Components"/>
<testProject
name="richFacesTest"
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllImportantTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllImportantTests.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllImportantTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -0,0 +1,47 @@
+package org.jboss.tools.jsf.vpe.richfaces.test;
+
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1579Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1606Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1613Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1713Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1548Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1580Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1614Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1639Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1682Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.RichFacesJBIDE1169Test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Test suite containing all important RichFaces tests
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class RichFacesAllImportantTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ RichFacesAllImportantTests.class.getName());
+ //$JUnit-BEGIN$
+ suite.addTestSuite(JBIDE1579Test.class);
+ suite.addTestSuite(Jbide1580Test.class);
+ suite.addTestSuite(JBIDE1613Test.class);
+ suite.addTestSuite(Jbide1614Test.class);
+ suite.addTestSuite(Jbide1639Test.class);
+ suite.addTestSuite(Jbide1682Test.class);
+ suite.addTestSuite(Jbide1548Test.class);
+ suite.addTestSuite(JBIDE1713Test.class);
+ suite.addTestSuite(RichFacesJBIDE1169Test.class);
+ suite.addTestSuite(RichFacesComboBoxTemplateTestCase.class);
+ suite.addTestSuite(RichFacesInplaceSelectTemplateTestCase.class);
+ suite.addTestSuite(RichFacesFileUploadTemplateTestCase.class);
+ suite.addTestSuite(RichFacesColumnsTemplateTestCase.class);
+ suite.addTestSuite(RichFacesPickListTemplateTestCase.class);
+ suite.addTestSuite(JBIDE1606Test.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2011-03-28
09:49:10 UTC (rev 30061)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -13,16 +13,6 @@
import junit.framework.Test;
import junit.framework.TestSuite;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1579Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1606Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1613Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.JBIDE1713Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1548Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1580Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1614Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1639Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1682Test;
-import org.jboss.tools.jsf.vpe.richfaces.test.jbide.RichFacesJBIDE1169Test;
import org.jboss.tools.vpe.base.test.VpeTestSetup;
/**
@@ -39,24 +29,8 @@
public static Test suite() {
TestSuite suite = new TestSuite("Tests for Vpe RichFaces components"); //
$NON //$NON-NLS-1$
// $JUnit-BEGIN$
-
- suite.addTestSuite(JBIDE1579Test.class);
- suite.addTestSuite(Jbide1580Test.class);
- suite.addTestSuite(JBIDE1613Test.class);
- suite.addTestSuite(Jbide1614Test.class);
- suite.addTestSuite(Jbide1639Test.class);
- suite.addTestSuite(Jbide1682Test.class);
- suite.addTestSuite(Jbide1548Test.class);
- suite.addTestSuite(JBIDE1713Test.class);
- suite.addTestSuite(RichFacesJBIDE1169Test.class);
- suite.addTestSuite(RichFacesComboBoxTemplateTestCase.class);
- suite.addTestSuite(RichFacesInplaceSelectTemplateTestCase.class);
- suite.addTestSuite(RichFacesFileUploadTemplateTestCase.class);
- suite.addTestSuite(RichFacesColumnsTemplateTestCase.class);
- suite.addTestSuite(RichFacesPickListTemplateTestCase.class);
- suite.addTestSuite(JBIDE1606Test.class);
+ suite.addTest(RichFacesAllImportantTests.suite());
suite.addTestSuite(RichFacesComponentContentTest.class);
-
// $JUnit-END$
return new VpeTestSetup(suite);
}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml 2011-03-28 09:49:10 UTC
(rev 30061)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml 2011-03-28 10:25:20 UTC
(rev 30062)
@@ -5,7 +5,8 @@
point="org.jboss.tools.vpe.ui.test">
<tests
name="Vpe test's for seam ui components"
- testSuite="org.jboss.tools.jsf.vpe.seam.test.SeamAllTests"/>
+ testSuite="org.jboss.tools.jsf.vpe.seam.test.SeamAllTests"
+
importantTestSuite="org.jboss.tools.jsf.vpe.seam.test.SeamAllImportantTests"/>
<testProject
name="SeamTest"
path="resources/SeamTest"/>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllImportantTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllImportantTests.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllImportantTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -0,0 +1,22 @@
+package org.jboss.tools.jsf.vpe.seam.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Test suite containing all important Seam tests
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class SeamAllImportantTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(SeamAllImportantTests.class.getName());
+ //$JUnit-BEGIN$
+ suite.addTestSuite(JBIDE1484Test.class);
+ suite.addTestSuite(OpenOnForDecorateTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java 2011-03-28
09:49:10 UTC (rev 30061)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -10,11 +10,11 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.seam.test;
-import org.jboss.tools.vpe.base.test.VpeTestSetup;
-
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
+
/**
* Class for testing all Seam components
*
@@ -29,9 +29,8 @@
public static Test suite() {
TestSuite suite = new TestSuite("Tests for Vpe Seam components");
//$NON-NLS-1$
// $JUnit-BEGIN$
+ suite.addTest(SeamAllImportantTests.suite());
suite.addTestSuite(SeamComponentContentTest.class);
- suite.addTestSuite(JBIDE1484Test.class);
- suite.addTestSuite(OpenOnForDecorateTest.class);
// $JUnit-END$
return new VpeTestSetup(suite);
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd 2011-03-28
09:49:10 UTC (rev 30061)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd 2011-03-28
10:25:20 UTC (rev 30062)
@@ -1,146 +1,156 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.jboss.tools.vpe.base.test"
xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.jboss.tools.vpe.base.test"
id="vpe.ui.test" name="Visual Editor Tests"/>
- </appinfo>
- <documentation>
- [Enter description of this extension point.]
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="tests"/>
- <element ref="testProject" minOccurs="0"
maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string"
use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="tests">
- <complexType>
- <attribute name="testSuite" type="string"
use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute kind="java"/>
- </appinfo>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="description" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="testProject">
- <annotation>
- <documentation>
- Project to be loaded to perform the tests.
-Example of using:
-<testProject name="jsfTest"
path="resources/jsfTest"/>
- </documentation>
- </annotation>
- <complexType>
- <attribute name="name" type="string"
use="required">
- <annotation>
- <documentation>
- Name of the project.
- </documentation>
- </annotation>
- </attribute>
- <attribute name="path" type="string"
use="required">
- <annotation>
- <documentation>
- Path to the project within the plugin.
- </documentation>
- <appinfo>
- <meta.attribute kind="resource"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="apiInfo"/>
- </appinfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="implementation"/>
- </appinfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.vpe.base.test"
xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.jboss.tools.vpe.base.test"
id="vpe.ui.test" name="Visual Editor Tests"/>
+ </appinfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="tests"/>
+ <element ref="testProject" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="tests">
+ <complexType>
+ <attribute name="testSuite" type="string"
use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ <attribute name="importantTestSuite" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="description" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="testProject">
+ <annotation>
+ <documentation>
+ Project to be loaded to perform the tests.
+Example of using:
+<testProject name="jsfTest"
path="resources/jsfTest"/>
+ </documentation>
+ </annotation>
+ <complexType>
+ <attribute name="name" type="string"
use="required">
+ <annotation>
+ <documentation>
+ Name of the project.
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="path" type="string"
use="required">
+ <annotation>
+ <documentation>
+ Path to the project within the plugin.
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="resource"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiInfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml 2011-03-28 09:49:10 UTC (rev
30061)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml 2011-03-28 10:25:20 UTC (rev
30062)
@@ -6,7 +6,8 @@
<tests
description="Tests for Html templates"
name="Tests for Html templates"
- testSuite="org.jboss.tools.vpe.html.test.HtmlAllTests"/>
+ testSuite="org.jboss.tools.vpe.html.test.HtmlAllTests"
+
importantTestSuite="org.jboss.tools.vpe.html.test.HtmlAllImportantTests"/>
<testProject
name="htmlTest"
path="resources/htmlTest"/>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllImportantTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllImportantTests.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllImportantTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -0,0 +1,22 @@
+package org.jboss.tools.vpe.html.test;
+
+import org.jboss.tools.vpe.html.test.jbide.JBIDE3280Test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+/**
+ * Test suite containing all important HTML tests
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class HtmlAllImportantTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(HtmlAllImportantTests.class.getName());
+ //$JUnit-BEGIN$
+ suite.addTestSuite(JBIDE3280Test.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
Modified:
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/HtmlAllTests.java 2011-03-28
09:49:10 UTC (rev 30061)
+++
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -14,7 +14,6 @@
import junit.framework.TestSuite;
import org.jboss.tools.vpe.base.test.VpeTestSetup;
-import org.jboss.tools.vpe.html.test.jbide.JBIDE3280Test;
/**
@@ -33,9 +32,9 @@
TestSuite suite = new TestSuite("Tests for Vpe HTML components");
//$NON-NLS-1$
// $JUnit-BEGIN$
- suite.addTestSuite(JBIDE3280Test.class);
+ suite.addTest(HtmlAllImportantTests.suite());
suite.addTestSuite(HtmlComponentContentTest.class);
-
+ //$JUnit-END$
return new VpeTestSetup(suite);
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/plugin.xml 2011-03-28 09:49:10 UTC (rev
30061)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/plugin.xml 2011-03-28 10:25:20 UTC (rev
30062)
@@ -4,7 +4,8 @@
<extension
point="org.jboss.tools.vpe.ui.test">
<tests
- testSuite="org.jboss.tools.vpe.test.VpeAllTests">
+ testSuite="org.jboss.tools.vpe.test.VpeAllTests"
+
importantTestSuite="org.jboss.tools.vpe.test.VpeAllImportantTests">
</tests>
</extension>
Added:
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllImportantTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllImportantTests.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllImportantTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -0,0 +1,26 @@
+package org.jboss.tools.vpe.test;
+
+import org.jboss.tools.vpe.editor.template.VpeTemplateManagerTest;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Test suite containing all important VPE core tests.
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class VpeAllImportantTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(VpeAllImportantTests.class.getName());
+ //$JUnit-BEGIN$
+ suite.addTestSuite(TemplateLoadingTest.class);
+ suite.addTestSuite(TemplateSchemeValidateTest.class);
+ suite.addTestSuite(TemplatesExpressionParsingTest.class);
+ suite.addTestSuite(VpeTemplateManagerTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2011-03-28
09:49:10 UTC (rev 30061)
+++
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -15,7 +15,6 @@
import junit.framework.TestSuite;
import org.jboss.tools.vpe.base.test.VpeTestSetup;
-import org.jboss.tools.vpe.editor.template.VpeTemplateManagerTest;
/**
* Class created for run tests for org.jboss.tools.vpe plugin.
@@ -29,10 +28,8 @@
public static Test suite(){
TestSuite suite = new TestSuite("Tests for vpe"); //$NON-NLS-1$
// $JUnit-BEGIN$
- suite.addTestSuite(TemplateLoadingTest.class);
- suite.addTestSuite(TemplateSchemeValidateTest.class);
- suite.addTestSuite(TemplatesExpressionParsingTest.class);
- suite.addTestSuite(VpeTemplateManagerTest.class);
+ suite.addTest(VpeAllImportantTests.suite());
+ //$JUnit-END$
return new VpeTestSetup(suite);
}
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllImportantTests.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllImportantTests.java
(rev 0)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeAllImportantTests.java 2011-03-28
10:25:20 UTC (rev 30062)
@@ -0,0 +1,64 @@
+/*******************************************************************************
+ * 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.ui.test;
+
+import java.lang.reflect.Method;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
+
+/**
+ * Test suite to run all important VPE tests from all plugins that extend
+ * {@value VPETestPlugin#VPE_TEST_EXTENTION_POINT_ID}.
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class VpeAllImportantTests {
+
+ public static final String IMPORTANT_TEST_SUITE_PARAM = "importantTestSuite";
//$NON-NLS-1$
+
+ public static Test suite() {
+
+ TestSuite result = new TestSuite();
+ IExtension[] extensions = VPETestPlugin.getDefault().getVpeTestExtensions();
+ for (IExtension extension : extensions) {
+ IConfigurationElement[] confElements = extension
+ .getConfigurationElements();
+ for (IConfigurationElement configurationElement : confElements) {
+ String clazz = configurationElement
+ .getAttribute(IMPORTANT_TEST_SUITE_PARAM);
+ if (VpeAllTests.TESTS_ELEMENT.equals(configurationElement.getName())) {
+ try {
+ Bundle bundle = Platform.getBundle(configurationElement
+ .getNamespaceIdentifier());
+ Class<?> testObject = bundle.loadClass(clazz);
+ Method method = testObject.getMethod(VpeAllTests.METHOD_SUITE_NAME, null);
+ // null -because static method
+ Object res = method.invoke(null, null);
+ if (res instanceof Test) {
+ Test testSuite = (Test) res;
+ result.addTest(testSuite);
+ }
+ } catch (Exception e) {
+ VPETestPlugin.getDefault().logError(e);
+ }
+ }
+ }
+ }
+ return result;
+
+ }
+}