Author: scabanovich
Date: 2011-10-13 20:48:36 -0400 (Thu, 13 Oct 2011)
New Revision: 35645
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/CDISeamCoreAllTests.java
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/international/BundleModelTest.java
Log:
JBIDE-9911
https://issues.jboss.org/browse/JBIDE-9911
Rebuild of all jars added when available cdi extensions changed.
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/META-INF/MANIFEST.MF 2011-10-14
00:43:07 UTC (rev 35644)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/META-INF/MANIFEST.MF 2011-10-14
00:48:36 UTC (rev 35645)
@@ -23,6 +23,7 @@
org.jboss.tools.common.text.ext,
org.jboss.tools.jst.text.ext,
org.jboss.tools.jst.text.ext.test,
+ org.jboss.tools.cdi.seam.solder.core.test,
org.eclipse.wst.validation;bundle-version="1.2.300"
Export-Package: org.jboss.tools.cdi.seam.core.test
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/CDISeamCoreAllTests.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/CDISeamCoreAllTests.java 2011-10-14
00:43:07 UTC (rev 35644)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/CDISeamCoreAllTests.java 2011-10-14
00:48:36 UTC (rev 35645)
@@ -43,10 +43,10 @@
TestSuite suite = new TestSuite("Seam Core Project Tests");
suite.addTestSuite(SeamServletValidationTest.class);
suite.addTestSuite(SeamResourceBundlesTest.class);
- suite.addTestSuite(BundleModelTest.class);
suite.addTestSuite(SeamJmsValidationTest.class);
suite.addTestSuite(SeamResourceBundleCdiElResolverTest.class);
suite.addTestSuite(SeamRestValidationTest.class);
+ suite.addTestSuite(BundleModelTest.class); // should be the last in this suite because
it removes/adds seam-international.jar
suiteAll.addTest(new SeamCoreTestSetup(suite));
suite = new TestSuite("Seam Persistence Project Tests");
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/international/BundleModelTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/international/BundleModelTest.java 2011-10-14
00:43:07 UTC (rev 35644)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/international/BundleModelTest.java 2011-10-14
00:48:36 UTC (rev 35645)
@@ -8,6 +8,7 @@
import org.jboss.tools.cdi.seam.core.international.ILocalizedValue;
import org.jboss.tools.cdi.seam.core.international.IProperty;
import org.jboss.tools.cdi.seam.core.test.SeamCoreTest;
+import org.jboss.tools.cdi.seam.solder.core.test.GenericBeanValidationTest;
public class BundleModelTest extends SeamCoreTest {
@@ -32,4 +33,20 @@
assertNotNull(value);
assertEquals("About this example application", value.getValue());
}
+
+ public void testIncrementalBuildAtAddRemoveExtension() throws Exception {
+ String path = "WebContent/WEB-INF/lib/seam-international.jar";
+ String original = "WebContent/WEB-INF/lib/seam-international.original";
+
+ GenericBeanValidationTest.removeFile(getTestProject(), path);
+
+ IBundleModel bundleModel = BundleModelFactory.getBundleModel(getTestProject());
+ assertNull(bundleModel);
+
+ GenericBeanValidationTest.writeFile(getTestProject(), original, path);
+ bundleModel = BundleModelFactory.getBundleModel(getTestProject());
+ assertNotNull(bundleModel);
+ Set<String> bundles = bundleModel.getAllAvailableBundles();
+ assertTrue(bundles.contains("com.sun.corba.se.impl.logging.LogStrings"));
+ }
}
\ No newline at end of file