Author: scabanovich
Date: 2011-10-17 20:17:27 -0400 (Mon, 17 Oct 2011)
New Revision: 35741
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/SeamCoreTest/WebContent/WEB-INF/lib/a.empty
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/SeamCoreTest/WebContent/WEB-INF/lib/a.jar
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/international/BundleModelTest.java
Log:
JBIDE-9918
https://issues.jboss.org/browse/JBIDE-9918
Test added with jar modification.
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/SeamCoreTest/WebContent/WEB-INF/lib/a.empty
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/SeamCoreTest/WebContent/WEB-INF/lib/a.empty
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/SeamCoreTest/WebContent/WEB-INF/lib/a.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/projects/SeamCoreTest/WebContent/WEB-INF/lib/a.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
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-17
23:16:21 UTC (rev 35740)
+++
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/src/org/jboss/tools/cdi/seam/core/test/international/BundleModelTest.java 2011-10-18
00:17:27 UTC (rev 35741)
@@ -34,6 +34,24 @@
assertEquals("About this example application", value.getValue());
}
+ public void testIncrementalBuildAtJarModification() throws Exception {
+ IBundleModel bundleModel = BundleModelFactory.getBundleModel(getTestProject());
+ assertNotNull(bundleModel);
+
+ Set<String> bundles = bundleModel.getAllAvailableBundles();
+ assertTrue(bundles.contains("test1.xxm"));
+
+ String path = "WebContent/WEB-INF/lib/a.jar";
+ String empty = "WebContent/WEB-INF/lib/a.empty";
+
+ GenericBeanValidationTest.writeFile(getTestProject(), empty, path);
+
+ bundleModel = BundleModelFactory.getBundleModel(getTestProject());
+ assertNotNull(bundleModel);
+ bundles = bundleModel.getAllAvailableBundles();
+ assertFalse(bundles.contains("test1.xxm"));
+ }
+
public void testIncrementalBuildAtAddRemoveExtension() throws Exception {
IBundleModel originalBundleModel =
BundleModelFactory.getBundleModel(getTestProject());
assertNotNull(originalBundleModel);
@@ -57,4 +75,5 @@
assertTrue(bundles.contains(string));
}
}
+
}
\ No newline at end of file