[jboss-osgi-commits] JBoss-OSGI SVN: r91213 - in projects/jboss-osgi/trunk/testsuite/functional: src/test/java/org/jboss/test/osgi and 5 other directories.

jboss-osgi-commits at lists.jboss.org jboss-osgi-commits at lists.jboss.org
Tue Jul 14 10:06:27 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-07-14 10:06:26 -0400 (Tue, 14 Jul 2009)
New Revision: 91213

Added:
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/OSGI112TestCase.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleA.bnd
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleB.bnd
Removed:
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/OSGI108TestCase.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/SomeBean.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/SomeBeanMBean.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi108-bundleA.bnd
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi108-bundleB.bnd
Modified:
   projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/ActivatorBundleA.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleB/ActivatorBundleB.java
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-equinox.properties
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties
   projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-knopflerfish.properties
Log:
[JBOSGI-112] Investigate Exception in SynchronousBundleListener

Modified: projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml	2009-07-14 13:36:33 UTC (rev 91212)
+++ projects/jboss-osgi/trunk/testsuite/functional/scripts/antrun-test-jars.xml	2009-07-14 14:06:26 UTC (rev 91213)
@@ -85,6 +85,10 @@
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi108-bundleA.jar" files="${tests.resources.dir}/jbosgi108/jbosgi108-bundleA.bnd" />
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi108-bundleB.jar" files="${tests.resources.dir}/jbosgi108/jbosgi108-bundleB.bnd" />
     
+    <!-- jbosgi112 -->
+    <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi112-bundleA.jar" files="${tests.resources.dir}/jbosgi112/jbosgi112-bundleA.bnd" />
+    <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/jbosgi112-bundleB.jar" files="${tests.resources.dir}/jbosgi112/jbosgi112-bundleB.bnd" />
+    
     <!-- startlevel -->
     <bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/service/startlevel.jar" files="${tests.resources.dir}/service/startlevel/startlevel.bnd" />
 

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112 (from rev 91209, projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108)

Deleted: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/OSGI108TestCase.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/OSGI108TestCase.java	2009-07-14 13:12:34 UTC (rev 91209)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/OSGI108TestCase.java	2009-07-14 14:06:26 UTC (rev 91213)
@@ -1,176 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.osgi.jbosgi108;
-
-//$Id: OSGI39TestCase.java 87103 2009-04-09 22:18:31Z thomas.diesler at jboss.com $
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.List;
-
-import org.jboss.osgi.jmx.JMXCapability;
-import org.jboss.osgi.spi.management.MBeanProxy;
-import org.jboss.osgi.spi.testing.OSGiBundle;
-import org.jboss.osgi.spi.testing.OSGiPackageAdmin;
-import org.jboss.osgi.spi.testing.OSGiRuntime;
-import org.jboss.osgi.spi.testing.OSGiTestHelper;
-import org.jboss.test.osgi.jbosgi108.bundleA.SomeBeanMBean;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import org.osgi.framework.BundleException;
-
-/**
- * [JBOSGI-108] Investigate statics on PackageAdmin.refresh
- * 
- * https://jira.jboss.org/jira/browse/JBOSGI-108
- * 
- * @author thomas.diesler at jboss.com
- * @since 19-Jun-2009
- */
-public class OSGI108TestCase
-{
-   private static OSGiRuntime runtime;
-
-   @BeforeClass
-   public static void beforeClass() throws BundleException
-   {
-      runtime = new OSGiTestHelper().getDefaultRuntime();
-      runtime.addCapability(new JMXCapability());
-   }
-
-   @AfterClass
-   public static void afterClass() throws BundleException
-   {
-      if (runtime != null)
-         runtime.shutdown();
-   }
-
-   @Before
-   public void setUp()
-   {
-      OSGiPackageAdmin packageAdmin = runtime.getPackageAdmin();
-      packageAdmin.refreshPackages(null);
-   }
-
-   @Test
-   public void testRedeploySingle() throws Exception
-   {
-      OSGiBundle bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
-
-      bundleA.start();
-
-      SomeBeanMBean someBean = MBeanProxy.get(SomeBeanMBean.class, SomeBeanMBean.MBEAN_NAME, runtime.getMBeanServer());
-      List<String> messages = report(someBean.getMessages());
-      assertEquals("Start messages", 1, messages.size());
-
-      bundleA.uninstall();
-
-      // Reinstall bundleA
-      bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
-      bundleA.start();
-
-      // The static in bundleA.SomeBean is expected to be recreated
-
-      messages = report(someBean.getMessages());
-      assertEquals("Start messages", 1, messages.size());
-
-      bundleA.uninstall();
-   }
-
-   @Test
-   public void testRedeployWithReference() throws Exception
-   {
-      OSGiBundle bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
-      OSGiBundle bundleB = runtime.installBundle("jbosgi108-bundleB.jar");
-
-      bundleA.start();
-      bundleB.start();
-
-      SomeBeanMBean someBean = MBeanProxy.get(SomeBeanMBean.class, SomeBeanMBean.MBEAN_NAME, runtime.getMBeanServer());
-      List<String> messages = report(someBean.getMessages());
-      assertEquals("Start messages", 2, messages.size());
-
-      bundleA.uninstall();
-
-      // After uninstall bundleA, bundleB still holds a reference on
-      // bundleA.SomeBean
-
-      // Reinstall bundleA
-      bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
-      bundleA.start();
-
-      // The static in bundleA.SomeBean is expected to be reused
-
-      messages = report(someBean.getMessages());
-      assertEquals("Start messages", 4, messages.size());
-
-      bundleB.uninstall();
-      bundleA.uninstall();
-   }
-
-   @Test
-   public void testRedeployWithReferenceAndRefresh() throws Exception
-   {
-      OSGiBundle bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
-      OSGiBundle bundleB = runtime.installBundle("jbosgi108-bundleB.jar");
-
-      bundleA.start();
-      bundleB.start();
-
-      SomeBeanMBean someBean = MBeanProxy.get(SomeBeanMBean.class, SomeBeanMBean.MBEAN_NAME, runtime.getMBeanServer());
-      List<String> messages = report(someBean.getMessages());
-      assertEquals("Start messages", 2, messages.size());
-
-      bundleA.uninstall();
-
-      // After uninstall bundleA, bundleB still holds a reference on
-      // bundleA.SomeBean
-
-      // Refresh all packages
-      OSGiPackageAdmin packageAdmin = runtime.getPackageAdmin();
-      packageAdmin.refreshPackages(null);
-
-      // Reinstall bundleA
-      bundleA = runtime.installBundle("jbosgi108-bundleA.jar");
-      bundleA.start();
-
-      // The static in bundleA.SomeBean is expected to be recreated
-
-      messages = report(someBean.getMessages());
-      assertEquals("Start messages", 1, messages.size());
-
-      bundleB.uninstall();
-      bundleA.uninstall();
-   }
-
-   private List<String> report(List<String> messages)
-   {
-      // System.out.println(">>>>>>>>>>>>");
-      // for (String aux : messages)
-      //    System.out.println(aux);
-      // System.out.println("<<<<<<<<<<<");
-      
-      return messages;
-   }
-}
\ No newline at end of file

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/OSGI112TestCase.java (from rev 91209, projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/OSGI108TestCase.java)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/OSGI112TestCase.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/OSGI112TestCase.java	2009-07-14 14:06:26 UTC (rev 91213)
@@ -0,0 +1,85 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi112;
+
+//$Id: OSGI39TestCase.java 87103 2009-04-09 22:18:31Z thomas.diesler at jboss.com $
+
+import static org.junit.Assert.fail;
+
+import org.jboss.osgi.spi.testing.OSGiBundle;
+import org.jboss.osgi.spi.testing.OSGiRuntime;
+import org.jboss.osgi.spi.testing.OSGiTestHelper;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Ignore;
+import org.junit.Test;
+import org.osgi.framework.BundleException;
+import org.osgi.framework.SynchronousBundleListener;
+
+/**
+ * [JBOSGI-112] Investigate Exception in SynchronousBundleListener
+ * 
+ * https://jira.jboss.org/jira/browse/JBOSGI-112
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 19-Jun-2009
+ */
+public class OSGI112TestCase
+{
+   private static OSGiRuntime runtime;
+
+   @BeforeClass
+   public static void beforeClass() throws BundleException
+   {
+      runtime = new OSGiTestHelper().getDefaultRuntime();
+   }
+
+   @AfterClass
+   public static void afterClass() throws BundleException
+   {
+      if (runtime != null)
+         runtime.shutdown();
+   }
+
+   /**
+    * BundleA registers a {@link SynchronousBundleListener} which throws an exception.
+    * Start of BundleB is expected to fail. 
+    */
+   @Test
+   @Ignore
+   public void testInstallBundles() throws Exception
+   {
+      OSGiBundle bundleA = runtime.installBundle("jbosgi112-bundleA.jar");
+      bundleA.start();
+
+      OSGiBundle bundleB = runtime.installBundle("jbosgi112-bundleB.jar");
+      try
+      {
+         bundleB.start();
+         fail("BundleException expected");
+      }
+      catch (BundleException ex)
+      {
+         // expected
+      }
+   }
+}
\ No newline at end of file

Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/ActivatorBundleA.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/ActivatorBundleA.java	2009-07-14 13:12:34 UTC (rev 91209)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/ActivatorBundleA.java	2009-07-14 14:06:26 UTC (rev 91213)
@@ -19,57 +19,39 @@
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
-package org.jboss.test.osgi.jbosgi108.bundleA;
+package org.jboss.test.osgi.jbosgi112.bundleA;
 
 //$Id: ServiceActivator.java 87064 2009-04-09 11:08:56Z thomas.diesler at jboss.com $
 
-import javax.management.MBeanServer;
-
+import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceReference;
+import org.osgi.framework.BundleEvent;
+import org.osgi.framework.BundleListener;
+import org.osgi.framework.SynchronousBundleListener;
 
 public class ActivatorBundleA implements BundleActivator
 {
-   private SomeBean bean;
-   
    public void start(BundleContext context)
    {
-      bean = new SomeBean();
-      
-      // Register the MBean
-      try
+      BundleListener listener = new SynchronousBundleListener()
       {
-         ServiceReference sref = context.getServiceReference(MBeanServer.class.getName());
-         MBeanServer service = (MBeanServer)context.getService(sref);
-         service.registerMBean(bean, SomeBean.MBEAN_NAME);
-      }
-      catch (Exception ex)
-      {
-         throw new IllegalStateException(ex);
-      }
-      
-      ClassLoader cl = getClass().getClassLoader();
-      String msg = "start with " + cl + " - hashCode: " + cl.hashCode();
-      bean.addMessage(msg);
+         public void bundleChanged(BundleEvent evt)
+         {
+            if (BundleEvent.STARTING == evt.getType())
+            {
+               Bundle bundle = evt.getBundle();
+               if ("jbosgi112-bundleB".equals(bundle.getSymbolicName()))
+               {
+                  throw new RuntimeException("Cannot start bundle: " + bundle);
+               }
+            }
+         }
+      };
+      context.addBundleListener(listener);
    }
 
    public void stop(BundleContext context)
    {
-      ClassLoader cl = getClass().getClassLoader();
-      String msg = "stop with " + cl + " - hashCode: " + cl.hashCode();
-      bean.addMessage(msg);
-
-      // Register the MBean
-      try
-      {
-         ServiceReference sref = context.getServiceReference(MBeanServer.class.getName());
-         MBeanServer service = (MBeanServer)context.getService(sref);
-         service.unregisterMBean(SomeBean.MBEAN_NAME);
-      }
-      catch (Exception ex)
-      {
-         throw new IllegalStateException(ex);
-      }
    }
 }
\ No newline at end of file

Deleted: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/SomeBean.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBean.java	2009-07-14 13:12:34 UTC (rev 91209)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/SomeBean.java	2009-07-14 14:06:26 UTC (rev 91213)
@@ -1,43 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.osgi.jbosgi108.bundleA;
-
-//$Id$
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-public class SomeBean implements SomeBeanMBean
-{
-   private static List<String> messages = new ArrayList<String>();
-   
-   public void addMessage(String msg)
-   {
-      messages.add(msg);
-   }
-   
-   public List<String> getMessages()
-   {
-      return Collections.unmodifiableList(messages);
-   }
-}

Deleted: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/SomeBeanMBean.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleA/SomeBeanMBean.java	2009-07-14 13:12:34 UTC (rev 91209)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleA/SomeBeanMBean.java	2009-07-14 14:06:26 UTC (rev 91213)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.osgi.jbosgi108.bundleA;
-
-import java.util.List;
-
-import javax.management.ObjectName;
-
-import org.jboss.osgi.spi.management.ObjectNameFactory;
-
-//$Id$
-
-public interface SomeBeanMBean
-{
-   ObjectName MBEAN_NAME = ObjectNameFactory.create("jboss.osgi:bean=SomeBean");
-   
-   List<String> getMessages();
-}

Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleB/ActivatorBundleB.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi108/bundleB/ActivatorBundleB.java	2009-07-14 13:12:34 UTC (rev 91209)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi112/bundleB/ActivatorBundleB.java	2009-07-14 14:06:26 UTC (rev 91213)
@@ -19,29 +19,20 @@
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
-package org.jboss.test.osgi.jbosgi108.bundleB;
+package org.jboss.test.osgi.jbosgi112.bundleB;
 
 //$Id$
 
-import org.jboss.test.osgi.jbosgi108.bundleA.SomeBean;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 
 public class ActivatorBundleB implements BundleActivator
 {
-   private SomeBean bean = new SomeBean();
-   
    public void start(BundleContext context)
    {
-      ClassLoader cl = getClass().getClassLoader();
-      String msg = "start with " + cl + " - hashCode: " + cl.hashCode();
-      bean.addMessage(msg);
    }
 
    public void stop(BundleContext context)
    {
-      ClassLoader cl = getClass().getClassLoader();
-      String msg = "stop with " + cl + " - hashCode: " + cl.hashCode();
-      bean.addMessage(msg);
    }
 }
\ No newline at end of file

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112 (from rev 91209, projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108)

Deleted: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi108-bundleA.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleA.bnd	2009-07-14 13:12:34 UTC (rev 91209)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi108-bundleA.bnd	2009-07-14 14:06:26 UTC (rev 91213)
@@ -1,6 +0,0 @@
-# bnd build -classpath target/test-classes -output target/test-libs/jbosgi108-bundleA.jar src/test/resources/jbosgi108/jbosgi108-bundleA.bnd
-
-Bundle-SymbolicName: jbosgi108-bundleA
-Bundle-Activator: org.jboss.test.osgi.jbosgi108.bundleA.ActivatorBundleA
-Export-Package: org.jboss.test.osgi.jbosgi108.bundleA
-

Deleted: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi108-bundleB.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleB.bnd	2009-07-14 13:12:34 UTC (rev 91209)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi108-bundleB.bnd	2009-07-14 14:06:26 UTC (rev 91213)
@@ -1,7 +0,0 @@
-# bnd build -classpath target/test-classes -output target/test-libs/jbosgi108-bundleB.jar src/test/resources/jbosgi108/jbosgi108-bundleB.bnd
-
-Bundle-SymbolicName: jbosgi108-bundleB
-Bundle-Activator: org.jboss.test.osgi.jbosgi108.bundleB.ActivatorBundleB
-Export-Package: org.jboss.test.osgi.jbosgi108.bundleB
-Import-Package: org.osgi.framework, org.jboss.test.osgi.jbosgi108.bundleA
-

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleA.bnd (from rev 91209, projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleA.bnd)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleA.bnd	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleA.bnd	2009-07-14 14:06:26 UTC (rev 91213)
@@ -0,0 +1,6 @@
+# bnd build -classpath target/test-classes -output target/test-libs/jbosgi112-bundleA.jar src/test/resources/jbosgi112/jbosgi112-bundleA.bnd
+
+Bundle-SymbolicName: jbosgi112-bundleA
+Bundle-Activator: org.jboss.test.osgi.jbosgi112.bundleA.ActivatorBundleA
+Export-Package: org.jboss.test.osgi.jbosgi112.bundleA
+

Copied: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleB.bnd (from rev 91209, projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi108/jbosgi108-bundleB.bnd)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleB.bnd	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jbosgi112/jbosgi112-bundleB.bnd	2009-07-14 14:06:26 UTC (rev 91213)
@@ -0,0 +1,7 @@
+# bnd build -classpath target/test-classes -output target/test-libs/jbosgi112-bundleB.jar src/test/resources/jbosgi112/jbosgi112-bundleB.bnd
+
+Bundle-SymbolicName: jbosgi112-bundleB
+Bundle-Activator: org.jboss.test.osgi.jbosgi112.bundleB.ActivatorBundleB
+Export-Package: org.jboss.test.osgi.jbosgi112.bundleB
+Import-Package: org.osgi.framework, org.jboss.test.osgi.jbosgi112.bundleA
+

Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-equinox.properties
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-equinox.properties	2009-07-14 13:36:33 UTC (rev 91212)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-equinox.properties	2009-07-14 14:06:26 UTC (rev 91213)
@@ -11,3 +11,34 @@
 org.osgi.framework.storage=${basedir}/target/osgi-store
 org.osgi.framework.storage.clean=onFirstInit
 
+# Extra System Packages
+org.osgi.framework.system.packages=\
+	javax.management, \
+    org.apache.log4j, \
+	org.jboss.logging, \
+  	org.jboss.net.protocol, \
+  	org.jboss.osgi.spi;version=1.0, \
+  	org.jboss.osgi.spi.capability;version=1.0, \
+  	org.jboss.osgi.spi.logging;version=1.0, \
+  	org.jboss.osgi.spi.management;version=1.0, \
+  	org.jboss.osgi.spi.service;version=1.0, \
+  	org.jboss.osgi.spi.util;version=1.0, \
+  	org.jboss.virtual, \
+  	org.jboss.virtual.plugins.registry, \
+  	org.jboss.virtual.plugins.context.jar, \
+  	org.jboss.virtual.plugins.vfs.helpers, \
+  	org.jboss.virtual.protocol, \
+    org.jboss.util, \
+    org.jboss.util.id, \
+    org.jboss.util.threadpool, \
+    org.jboss.util.propertyeditor, \
+  	org.osgi.framework;version\=1.4
+     
+# Bundles that need to be installed with the Framework automatically 
+org.jboss.osgi.spi.framework.autoInstall=\
+	file://${test.archive.directory}/bundles/org.osgi.compendium.jar
+
+# Bundles that need to be started automatically 
+org.jboss.osgi.spi.framework.autoStart=\
+	file://${test.archive.directory}/bundles/org.apache.felix.log.jar \
+	file://${test.archive.directory}/bundles/jboss-osgi-common.jar 

Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties	2009-07-14 13:36:33 UTC (rev 91212)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-felix.properties	2009-07-14 14:06:26 UTC (rev 91213)
@@ -11,9 +11,6 @@
 org.osgi.framework.storage=${basedir}/target/osgi-store
 org.osgi.framework.storage.clean=onFirstInit
 
-# Framework bootdelegation
-# org.osgi.framework.bootdelegation=org.osgi.service.log
-
 # Extra System Packages
 org.osgi.framework.system.packages.extra=\
 	org.jboss.logging, \
@@ -37,10 +34,10 @@
     org.jboss.util.propertyeditor 
 
 # Bundles that need to be installed with the Framework automatically 
-# org.jboss.osgi.spi.framework.autoInstall=
+org.jboss.osgi.spi.framework.autoInstall=\
+	file://${test.archive.directory}/bundles/org.osgi.compendium.jar
 
 # Bundles that need to be started automatically 
 org.jboss.osgi.spi.framework.autoStart=\
-	file://${test.archive.directory}/bundles/org.osgi.compendium.jar \
 	file://${test.archive.directory}/bundles/org.apache.felix.log.jar \
 	file://${test.archive.directory}/bundles/jboss-osgi-common.jar 

Modified: projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-knopflerfish.properties
===================================================================
--- projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-knopflerfish.properties	2009-07-14 13:36:33 UTC (rev 91212)
+++ projects/jboss-osgi/trunk/testsuite/functional/src/test/resources/jboss-osgi-knopflerfish.properties	2009-07-14 14:06:26 UTC (rev 91213)
@@ -11,3 +11,35 @@
 org.osgi.framework.storage=${basedir}/target/osgi-store
 org.osgi.framework.storage.clean=onFirstInit
 
+# Extra System Packages
+org.osgi.framework.system.packages=\
+	javax.management, \
+    org.apache.log4j, \
+	org.jboss.logging, \
+  	org.jboss.net.protocol, \
+  	org.jboss.osgi.spi;version=1.0, \
+  	org.jboss.osgi.spi.capability;version=1.0, \
+  	org.jboss.osgi.spi.logging;version=1.0, \
+  	org.jboss.osgi.spi.management;version=1.0, \
+  	org.jboss.osgi.spi.service;version=1.0, \
+  	org.jboss.osgi.spi.util;version=1.0, \
+  	org.jboss.virtual, \
+  	org.jboss.virtual.plugins.registry, \
+  	org.jboss.virtual.plugins.context.jar, \
+  	org.jboss.virtual.plugins.vfs.helpers, \
+  	org.jboss.virtual.protocol, \
+    org.jboss.util, \
+    org.jboss.util.id, \
+    org.jboss.util.threadpool, \
+    org.jboss.util.propertyeditor, \
+  	org.osgi.framework;version\=1.4, \
+  	org.osgi.service.startlevel;version\=1.1
+     
+# Bundles that need to be installed with the Framework automatically 
+org.jboss.osgi.spi.framework.autoInstall=\
+	file://${test.archive.directory}/bundles/org.osgi.compendium.jar
+
+# Bundles that need to be started automatically 
+org.jboss.osgi.spi.framework.autoStart=\
+	file://${test.archive.directory}/bundles/org.apache.felix.log.jar \
+	file://${test.archive.directory}/bundles/jboss-osgi-common.jar 




More information about the jboss-osgi-commits mailing list