JBoss Tools SVN: r30063 - trunk/deltacloud/tests/org.jboss.tools.deltacloud.client.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-03-28 08:59:04 -0400 (Mon, 28 Mar 2011)
New Revision: 30063
Modified:
trunk/deltacloud/tests/org.jboss.tools.deltacloud.client.test/META-INF/MANIFEST.MF
Log:
[JBIDE-8562] removed unneeded dependency to org.jboss.tools.deltacloud.core
Modified: trunk/deltacloud/tests/org.jboss.tools.deltacloud.client.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/deltacloud/tests/org.jboss.tools.deltacloud.client.test/META-INF/MANIFEST.MF 2011-03-28 10:25:20 UTC (rev 30062)
+++ trunk/deltacloud/tests/org.jboss.tools.deltacloud.client.test/META-INF/MANIFEST.MF 2011-03-28 12:59:04 UTC (rev 30063)
@@ -4,11 +4,8 @@
Bundle-SymbolicName: org.jboss.tools.deltacloud.client.test
Bundle-Version: 1.0.1.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
- org.jboss.tools.common;bundle-version="[3.2.0,4.0.0)",
- org.jboss.tools.deltacloud.client;bundle-version="0.1.0",
- org.jboss.tools.deltacloud.core;bundle-version="0.0.1",
- org.jboss.tools.deltacloud.ui;bundle-version="0.1.0",
+Require-Bundle: org.jboss.tools.deltacloud.client;bundle-version="0.1.0",
+ org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
org.junit;bundle-version="[4.8.0,5.0.0)"
Bundle-ClassPath: jruby-complete-1.5.3.jar,
.
13 years, 1 month
JBoss Tools SVN: r30062 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test and 10 other directories.
by jbosstools-commits@lists.jboss.org
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;
+
+ }
+}
13 years, 1 month
JBoss Tools SVN: r30061 - trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp.
by jbosstools-commits@lists.jboss.org
Author: jlukas(a)redhat.com
Date: 2011-03-28 05:49:10 -0400 (Mon, 28 Mar 2011)
New Revision: 30061
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java
Log:
typo
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java 2011-03-28 09:45:46 UTC (rev 30060)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java 2011-03-28 09:49:10 UTC (rev 30061)
@@ -24,8 +24,6 @@
import java.util.logging.Level;
import java.util.logging.Logger;
-import javax.net.ssl.HttpsURLConnection;
-
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -44,7 +42,6 @@
import org.jboss.tools.ui.bot.ext.gen.ActionItem.NewObject.WebServicesWebServiceClient;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.NewObject.WebServlet;
import org.jboss.tools.ui.bot.ext.parts.SWTBotHyperlinkExt;
-import org.jboss.tools.ui.bot.ext.parts.SWTBotScaleExt;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.ws.ui.bot.test.uiutils.actions.NewFileWizardAction;
import org.jboss.tools.ws.ui.bot.test.uiutils.wizards.DynamicWebProjectWizard;
@@ -277,7 +274,7 @@
URL u = new URL(wsdlURL);
connection = (HttpURLConnection) u.openConnection();
rsp = connection.getResponseCode();
- if (rsp == HttpsURLConnection.HTTP_OK) {
+ if (rsp == HttpURLConnection.HTTP_OK) {
break;
} else {
try {
13 years, 1 month
JBoss Tools SVN: r30060 - in trunk/ws/tests/org.jboss.tools.ws.ui.bot.test: src/org/jboss/tools/ws/ui/bot/test/widgets and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: jlukas(a)redhat.com
Date: 2011-03-28 05:45:46 -0400 (Mon, 28 Mar 2011)
New Revision: 30060
Modified:
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/.classpath
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/widgets/WsTesterView.java
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/BottomUpWSTest.java
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/TopDownWSTest.java
trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java
Log:
minor test update
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/.classpath
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/.classpath 2011-03-28 08:43:10 UTC (rev 30059)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/.classpath 2011-03-28 09:45:46 UTC (rev 30060)
@@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="resources"/>
- <classpathentry kind="output" path="bin"/>
+ <classpathentry kind="src" path="src/"/>
+ <classpathentry kind="src" path="resources/"/>
+ <classpathentry kind="output" path="target/classes"/>
</classpath>
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/widgets/WsTesterView.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/widgets/WsTesterView.java 2011-03-28 08:43:10 UTC (rev 30059)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/widgets/WsTesterView.java 2011-03-28 09:45:46 UTC (rev 30060)
@@ -14,10 +14,12 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.logging.Logger;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.SWTBot;
import org.eclipse.swtbot.swt.finder.results.BoolResult;
@@ -25,6 +27,7 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotButton;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotLabel;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.ui.forms.widgets.ExpandableComposite;
import org.eclipse.ui.internal.WorkbenchMessages;
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
@@ -37,6 +40,7 @@
public class WsTesterView extends ViewBase {
private static final Bundle WSUI_BUNDLE = Platform.getBundle("org.jboss.tools.ws.ui");
+ private static boolean max = false;
public enum Request_Type {
@@ -80,6 +84,7 @@
public WsTesterView() {
super();
+ max = false;
viewObject = new IView() {
public String getName() {
@@ -98,8 +103,11 @@
public SWTBotView show() {
SWTBotView b = super.show();
// maximize tester view
- bot.menu(IDEWorkbenchMessages.Workbench_window).menu(
+ if (!max) {
+ bot.menu(IDEWorkbenchMessages.Workbench_window).menu(
WorkbenchMessages.MaximizePartAction_text).click();
+ max = true;
+ }
return b;
}
@@ -172,7 +180,7 @@
String oldName, String oldValue, String newName, String newValue) {
bot().list(type.ordinal()).select(oldName + "=" + oldValue);
bot().button("Edit", type.ordinal()).click();
- SWTBot sh = bot().activeShell().bot();
+ SWTBot sh = bot().shell("Edit Value").bot();
sh.text(0).typeText(newName + "=" + newValue);
sh.button(IDialogConstants.OK_LABEL).click();
}
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/BottomUpWSTest.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/BottomUpWSTest.java 2011-03-28 08:43:10 UTC (rev 30059)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/BottomUpWSTest.java 2011-03-28 09:45:46 UTC (rev 30060)
@@ -102,7 +102,7 @@
runProject(getEarProjectName());
break;
}
- assertServiceDeployed(getWSDLUrl());
+ assertServiceDeployed(getWSDLUrl(), 10000);
// checkService(getWSDLUrl(svcName.substring(svcName.lastIndexOf(".") + 1)), QName service, QName port, String msg, String rsp)
// servers.removeAllProjectsFromServer(configuredState.getServer().name);
}
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/TopDownWSTest.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/TopDownWSTest.java 2011-03-28 08:43:10 UTC (rev 30059)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/TopDownWSTest.java 2011-03-28 09:45:46 UTC (rev 30060)
@@ -110,7 +110,7 @@
runProject(getEarProjectName());
break;
}
- assertServiceDeployed(getWSDLUrl());
+ assertServiceDeployed(getWSDLUrl(), 10000);
// servers.removeAllProjectsFromServer(configuredState.getServer().name);
}
Modified: trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java 2011-03-28 08:43:10 UTC (rev 30059)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/wtp/WSTestBase.java 2011-03-28 09:45:46 UTC (rev 30060)
@@ -24,6 +24,8 @@
import java.util.logging.Level;
import java.util.logging.Logger;
+import javax.net.ssl.HttpsURLConnection;
+
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -263,21 +265,41 @@
}
protected void assertServiceDeployed(String wsdlURL) {
- HttpURLConnection connection = null;
- try {
- URL u = new URL(wsdlURL);
- connection = (HttpURLConnection) u.openConnection();
- assertEquals("Service was not sucessfully deployed, WSDL '" + wsdlURL + "' was not found",
- HttpURLConnection.HTTP_OK, connection.getResponseCode());
- } catch (MalformedURLException e1) {
- throw new RuntimeException(e1);
- } catch (IOException e) {
- throw new RuntimeException(e);
- } finally {
- if (connection != null) {
- connection.disconnect();
+ assertServiceDeployed(wsdlURL, 5000);
+ }
+
+ protected void assertServiceDeployed(String wsdlURL, long timeout) {
+ long t = System.currentTimeMillis();
+ int rsp = -1;
+ while (t + timeout > System.currentTimeMillis()) {
+ HttpURLConnection connection = null;
+ try {
+ URL u = new URL(wsdlURL);
+ connection = (HttpURLConnection) u.openConnection();
+ rsp = connection.getResponseCode();
+ if (rsp == HttpsURLConnection.HTTP_OK) {
+ break;
+ } else {
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ //ignore
+ }
+ L.info("retrying...");
+ }
+ } catch (MalformedURLException e1) {
+ throw new RuntimeException(e1);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ } finally {
+ if (connection != null) {
+ connection.disconnect();
+ }
}
}
+ L.info("done after: " + (System.currentTimeMillis() - t) + "ms.");
+ assertEquals("Service was not sucessfully deployed, WSDL '" + wsdlURL + "' was not found",
+ HttpURLConnection.HTTP_OK, rsp);
}
protected void assertServiceNotDeployed(String wsdlURL) {
@@ -362,7 +384,6 @@
protected void runProject(String project) {
open.viewOpen(ActionItem.View.ServerServers.LABEL);
projectExplorer.runOnServer(project);
- bot.sleep(5000);
}
13 years, 1 month
JBoss Tools SVN: r30059 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.client/src/org/jboss/tools/deltacloud/core/client/unmarshal.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-03-28 04:43:10 -0400 (Mon, 28 Mar 2011)
New Revision: 30059
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.client/src/org/jboss/tools/deltacloud/core/client/unmarshal/AbstractDOMUnmarshaller.java
Log:
cleaned unneeded imports
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.client/src/org/jboss/tools/deltacloud/core/client/unmarshal/AbstractDOMUnmarshaller.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.client/src/org/jboss/tools/deltacloud/core/client/unmarshal/AbstractDOMUnmarshaller.java 2011-03-27 19:29:59 UTC (rev 30058)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.client/src/org/jboss/tools/deltacloud/core/client/unmarshal/AbstractDOMUnmarshaller.java 2011-03-28 08:43:10 UTC (rev 30059)
@@ -19,7 +19,6 @@
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
-import org.jboss.tools.deltacloud.core.client.Action;
import org.jboss.tools.deltacloud.core.client.DeltaCloudClientException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
13 years, 1 month
JBoss Tools SVN: r30058 - in trunk/runtime: tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-03-27 15:29:59 -0400 (Sun, 27 Mar 2011)
New Revision: 30058
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/SeamHandler.java
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
Log:
JBIDE-7583 Add tests for org.jboss.tools.runtime plugin
Modified: trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/SeamHandler.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/SeamHandler.java 2011-03-27 15:58:03 UTC (rev 30057)
+++ trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/SeamHandler.java 2011-03-27 19:29:59 UTC (rev 30058)
@@ -225,7 +225,7 @@
if ("seam-gen".equals(name)) {
return true;
}
- if ("examples".equals(name)) {
+ if ("lib".equals(name)) {
return true;
}
return false;
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-27 15:58:03 UTC (rev 30057)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-27 19:29:59 UTC (rev 30058)
@@ -13,9 +13,13 @@
import static org.junit.Assert.assertTrue;
import java.io.File;
+import java.io.FilenameFilter;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
+import java.util.jar.Attributes;
+import java.util.jar.JarFile;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.wst.server.core.IRuntime;
@@ -40,6 +44,7 @@
*
*/
public class RuntimeDetectionTest {
+ private final static String seamVersionAttributeName = "Seam-Version";
@BeforeClass
public static void create() {
@@ -139,11 +144,54 @@
}
@Test
+ public void testSeam22Location() throws Exception {
+ String seamHome = IRuntimeDetectionConstants.SEAM_22_HOME;
+ testSeamHome(seamHome, "2.2");
+ }
+
+ @Test
+ public void testSeam20Location() throws Exception {
+ String seamHome = IRuntimeDetectionConstants.SEAM_20_HOME;
+ testSeamHome(seamHome, "2.0");
+ }
+
+ private void testSeamHome(String seamHome, String seamVersion) throws IOException {
+ File file = new File(seamHome);
+ assertTrue("The '" + file.getAbsolutePath()
+ + "' path isn't valid.", file.isDirectory());
+ String[] seamFiles = file.list(new FilenameFilter() {
+
+ public boolean accept(File dir, String name) {
+ if ("seam-gen".equals(name)) {
+ return true;
+ }
+ if ("lib".equals(name)) {
+ return true;
+ }
+ return false;
+ }
+ });
+ assertTrue("seamFiles : " + seamFiles, seamFiles != null
+ && seamFiles.length == 2);
+ File jarFile = new File(seamHome, "lib/jboss-seam.jar");
+ assertTrue("The '" + jarFile.getAbsolutePath() + "' path isn't valid.",
+ jarFile.isFile());
+ JarFile jar = new JarFile(jarFile);
+ Attributes attributes = jar.getManifest().getMainAttributes();
+ String version = attributes.getValue(seamVersionAttributeName);
+ assertTrue("seamVersion: " + version, version != null && version.startsWith(seamVersion));
+ }
+
+ @Test
public void testServerDefinitions() {
List<ServerDefinition> serverDefinitions = RuntimeUIActivator
.getDefault().getServerDefinitions();
+ List<RuntimePath> runtimePaths = RuntimeUIActivator.getDefault()
+ .getRuntimePaths();
assertTrue("serverDefinitions.size()\nExpected: 5\nWas: "
- + serverDefinitions.size() + "\n" + serverDefinitions, serverDefinitions.size() == 5);
+ + serverDefinitions.size() +
+ "\nserverDefinitions: " + serverDefinitions +
+ "\nruntimePaths=" + runtimePaths, serverDefinitions.size() == 5);
}
@Test
13 years, 1 month
JBoss Tools SVN: r30057 - trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-03-27 11:58:03 -0400 (Sun, 27 Mar 2011)
New Revision: 30057
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
Log:
JBIDE-7583 Add tests for org.jboss.tools.runtime plugin
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-27 13:29:08 UTC (rev 30056)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-27 15:58:03 UTC (rev 30057)
@@ -143,7 +143,7 @@
List<ServerDefinition> serverDefinitions = RuntimeUIActivator
.getDefault().getServerDefinitions();
assertTrue("serverDefinitions.size()\nExpected: 5\nWas: "
- + serverDefinitions.size(), serverDefinitions.size() == 5);
+ + serverDefinitions.size() + "\n" + serverDefinitions, serverDefinitions.size() == 5);
}
@Test
13 years, 1 month
JBoss Tools SVN: r30056 - trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-03-27 09:29:08 -0400 (Sun, 27 Mar 2011)
New Revision: 30056
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
Log:
JBIDE-7583 Add tests for org.jboss.tools.runtime plugin
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-26 23:09:33 UTC (rev 30055)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-27 13:29:08 UTC (rev 30056)
@@ -114,6 +114,18 @@
"runtimePaths.size()\nExpected: 5\nWas: " + runtimePaths.size(),
runtimePaths.size() == 5);
}
+
+ @Test
+ public void testRuntimePathsExists() {
+ List<RuntimePath> runtimePaths = RuntimeUIActivator.getDefault()
+ .getRuntimePaths();
+ for (RuntimePath runtimePath:runtimePaths) {
+ String path = runtimePath.getPath();
+ File file = new File(path);
+ assertTrue("The '" + file.getAbsolutePath()
+ + "' path isn't valid.", file.isDirectory());
+ }
+ }
@Test
public void testLocations() {
13 years, 1 month
JBoss Tools SVN: r30055 - in trunk/runtime: tests/org.jboss.tools.runtime.test and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-03-26 19:09:33 -0400 (Sat, 26 Mar 2011)
New Revision: 30055
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java
trunk/runtime/tests/org.jboss.tools.runtime.test/META-INF/MANIFEST.MF
trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
Log:
JBIDE-7583 Add tests for org.jboss.tools.runtime plugin
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java 2011-03-26 17:07:55 UTC (rev 30054)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.ui/src/org/jboss/tools/runtime/ui/RuntimeScanner.java 2011-03-26 23:09:33 UTC (rev 30055)
@@ -32,6 +32,10 @@
@Override
public void earlyStartup() {
+ String skipRuntimeScanner = System.getProperty("skip.runtime.scanner", "false");
+ if ("true".equals(skipRuntimeScanner)) {
+ return;
+ }
final boolean firstStart = RuntimeUIActivator.getDefault().
getPreferenceStore().getBoolean(RuntimeUIActivator.FIRST_START);
Job runtimeJob = new Job("Searching runtimes...") {
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/META-INF/MANIFEST.MF 2011-03-26 17:07:55 UTC (rev 30054)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/META-INF/MANIFEST.MF 2011-03-26 23:09:33 UTC (rev 30055)
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %BundleName
-Bundle-SymbolicName: org.jboss.tools.runtime.test
+Bundle-SymbolicName: org.jboss.tools.runtime.test;singleton:=true
Bundle-Version: 1.0.0.qualifier
Require-Bundle: org.eclipse.core.runtime,
org.junit4,
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml 2011-03-26 17:07:55 UTC (rev 30054)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/pom.xml 2011-03-26 23:09:33 UTC (rev 30055)
@@ -12,7 +12,7 @@
<packaging>eclipse-test-plugin</packaging>
<properties>
- <systemProperties>-Djbosstools.test.jboss.home.4.2=${requirement.build.root}/jboss-4.2.3.GA -Djbosstools.test.jboss.home.5.1=${requirement.build.root}/jboss-5.1.0.GA -Djbosstools.test.seam.2.0.1.GA.home=${requirement.build.root}/jboss-seam-2.0.1.GA -Djbosstools.test.seam.2.2.0.GA.home=${requirement.build.root}/jboss-seam-2.2.0.GA -Djbosstools.test.eap.4.3.home=${requirement.build.root}/jboss-eap-4.3</systemProperties>
+ <systemProperties>-Djbosstools.test.jboss.home.4.2=${requirement.build.root}/jboss-4.2.3.GA -Djbosstools.test.jboss.home.5.1=${requirement.build.root}/jboss-5.1.0.GA -Djbosstools.test.seam.2.0.1.GA.home=${requirement.build.root}/jboss-seam-2.0.1.GA -Djbosstools.test.seam.2.2.0.GA.home=${requirement.build.root}/jboss-seam-2.2.0.GA -Djbosstools.test.eap.4.3.home=${requirement.build.root}/jboss-eap-4.3 -Dskip.runtime.scanner=true</systemProperties>
</properties>
<build>
<plugins>
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-26 17:07:55 UTC (rev 30054)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-26 23:09:33 UTC (rev 30055)
@@ -43,6 +43,8 @@
@BeforeClass
public static void create() {
+ RuntimeCoreActivator.getDefault();
+ RuntimeUIActivator.getDefault();
addRuntimePaths();
createRuntimes();
}
@@ -58,6 +60,7 @@
for (String path : paths) {
RuntimePath runtimePath = new RuntimePath(path);
+ runtimePath.setScanOnEveryStartup(false);
runtimePaths.add(runtimePath);
}
RuntimeUIActivator.getDefault().saveRuntimePaths();
13 years, 1 month
JBoss Tools SVN: r30054 - trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-03-26 13:07:55 -0400 (Sat, 26 Mar 2011)
New Revision: 30054
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
Log:
JBIDE-7583 Add tests for org.jboss.tools.runtime plugin
Modified: trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
===================================================================
--- trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-26 14:18:09 UTC (rev 30053)
+++ trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-26 17:07:55 UTC (rev 30054)
@@ -57,15 +57,10 @@
IRuntimeDetectionConstants.EAP_43_HOME };
for (String path : paths) {
- assertTrue(path != null);
- File file = new File(path);
- assertTrue("The '" + path + "' path isn't valid.",
- file.isDirectory());
RuntimePath runtimePath = new RuntimePath(path);
runtimePaths.add(runtimePath);
}
RuntimeUIActivator.getDefault().saveRuntimePaths();
- runtimePaths = null;
List<ServerDefinition> serverDefinitions = new ArrayList<ServerDefinition>();
Set<IRuntimeDetector> detectors = RuntimeCoreActivator
.getRuntimeDetectors();
@@ -74,8 +69,6 @@
detector.initializeRuntimes(serverDefinitions);
}
}
- assertTrue("serverDefinitions.size()\nExpected: 0\nWas: "
- + serverDefinitions.size(), serverDefinitions.size() == 0);
}
private static void createRuntimes() {
@@ -120,6 +113,17 @@
}
@Test
+ public void testLocations() {
+ List<ServerDefinition> serverDefinitions = RuntimeUIActivator
+ .getDefault().getServerDefinitions();
+ for (ServerDefinition serverDefinition : serverDefinitions) {
+ File location = serverDefinition.getLocation();
+ assertTrue("The '" + location.getAbsolutePath()
+ + "' path isn't valid.", location.isDirectory());
+ }
+ }
+
+ @Test
public void testServerDefinitions() {
List<ServerDefinition> serverDefinitions = RuntimeUIActivator
.getDefault().getServerDefinitions();
13 years, 1 month