aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1600976 - /aries/trunk/spi-fly/spi-fly-core/src/test/java/org/apache/aries/spifly/UtilTest.java
Date Fri, 06 Jun 2014 18:35:12 GMT
Author: gnodet
Date: Fri Jun  6 18:35:12 2014
New Revision: 1600976

URL: http://svn.apache.org/r1600976
Log:
Fix spi-fly tests

Modified:
    aries/trunk/spi-fly/spi-fly-core/src/test/java/org/apache/aries/spifly/UtilTest.java

Modified: aries/trunk/spi-fly/spi-fly-core/src/test/java/org/apache/aries/spifly/UtilTest.java
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-core/src/test/java/org/apache/aries/spifly/UtilTest.java?rev=1600976&r1=1600975&r2=1600976&view=diff
==============================================================================
--- aries/trunk/spi-fly/spi-fly-core/src/test/java/org/apache/aries/spifly/UtilTest.java (original)
+++ aries/trunk/spi-fly/spi-fly-core/src/test/java/org/apache/aries/spifly/UtilTest.java Fri
Jun  6 18:35:12 2014
@@ -78,6 +78,7 @@ public class UtilTest {
 
         Bundle providerBundle = EasyMock.createMock(Bundle.class);
         final ClassLoader providerCL = new TestBundleClassLoader(new URL [] {url}, getClass().getClassLoader(),
providerBundle);
+        EasyMock.expect(providerBundle.getBundleContext()).andThrow(new IllegalStateException("Disable
getBundleClassLoaderViaAdapt"));
         EasyMock.expect(providerBundle.getBundleId()).andReturn(42L).anyTimes();
         EasyMock.expect(providerBundle.getEntryPaths((String) EasyMock.anyObject())).andReturn(null).anyTimes();
         Dictionary<String, String> providerHeaders = new Hashtable<String, String>();



Mime
View raw message