geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r826190 - /geronimo/server/trunk/framework/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/osgi/MockBundleContext.java
Date Sat, 17 Oct 2009 08:04:40 GMT
Author: djencks
Date: Sat Oct 17 08:04:39 2009
New Revision: 826190

URL: http://svn.apache.org/viewvc?rev=826190&view=rev
Log:
add a default artifactId in MockBundleContext

Modified:
    geronimo/server/trunk/framework/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/osgi/MockBundleContext.java

Modified: geronimo/server/trunk/framework/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/osgi/MockBundleContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/osgi/MockBundleContext.java?rev=826190&r1=826189&r2=826190&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/osgi/MockBundleContext.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-kernel/src/test/java/org/apache/geronimo/kernel/osgi/MockBundleContext.java
Sat Oct 17 08:04:39 2009
@@ -103,6 +103,9 @@
         //activate it.
         Artifact configId = locations.get(location);
         if (configId == null) {
+            configId = locations.get(null);
+        }
+        if (configId == null) {
             configId = Artifact.create(location);
         }
         ConfigurationData configurationData = configurationDatas.get(configId);



Mime
View raw message