[jboss-cvs] JBossAS SVN: r84120 - in projects/jboss-felix/trunk/modules/integration/testsuite: src/test/java/org/jboss/osgi and 8 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 12 06:20:42 EST 2009


Author: thomas.diesler at jboss.com
Date: 2009-02-12 06:20:41 -0500 (Thu, 12 Feb 2009)
New Revision: 84120

Added:
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/ServiceActivator.java
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/Foo.java
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/FooMBean.java
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/MBeanTestService.java
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/ServiceActivator.java
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/junit/
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/junit/MicrocontainerServiceTest.java
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/microcontainer/
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/microcontainer/microcontainer-service.bnd
Removed:
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/service/
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/EndpointActivator.java
Modified:
   projects/jboss-felix/trunk/modules/integration/testsuite/scripts/antrun-test-jars.xml
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/junit/EndpointServiceTest.java
   projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/http/http-service.bnd
Log:
Add MBean test

Modified: projects/jboss-felix/trunk/modules/integration/testsuite/scripts/antrun-test-jars.xml
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/scripts/antrun-test-jars.xml	2009-02-12 10:22:55 UTC (rev 84119)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/scripts/antrun-test-jars.xml	2009-02-12 11:20:41 UTC (rev 84120)
@@ -41,9 +41,13 @@
 	  <target name="build-test-jars" depends="init" description="Build the test deployments">
 
 	    <!-- http-service-test -->
-	  	<bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/http-service-test.jar" 
+	  	<bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/http-service.jar" 
 	  		files="${tests.resources.dir}/service/http/http-service.bnd"/>
 
+	    <!-- microcontainer-service-test -->
+	  	<bnd classpath="${tests.classes.dir}" output="${tests.output.dir}/test-libs/microcontainer-service.jar" 
+	  		files="${tests.resources.dir}/service/microcontainer/microcontainer-service.bnd"/>
+
 	    <!-- Please add alphabetically -->
 
 	  </target>

Deleted: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/EndpointActivator.java
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/EndpointActivator.java	2009-02-12 10:22:55 UTC (rev 84119)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/EndpointActivator.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -1,61 +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.osgi.test.service.http;
-
-//$Id$
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.ServiceRegistration;
-
-/**
- * A Service Activator
- * 
- * @author thomas.diesler at jboss.com
- * @since 04-Feb-2009
- */
-public class EndpointActivator implements BundleActivator
-{
-  private ServiceRegistration registration;
-  
-  /*
-   * Implements BundleActivator.start(). 
-   * Registers an instance of a HttpEndpoint Service using the bundle context.
-   */
-  public void start(BundleContext context)
-  {
-    EndpointService service = new EndpointService(context);
-    registration = context.registerService(EndpointService.class.getName(), service, null);
-  }
-
-  /*
-   * Implements BundleActivator.stop(). 
-   */
-  public void stop(BundleContext context)
-  {
-    if (registration != null)
-    {
-      registration.unregister();
-      registration = null;
-    }
-  }
-}
\ No newline at end of file

Copied: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/ServiceActivator.java (from rev 84117, projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/EndpointActivator.java)
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/ServiceActivator.java	                        (rev 0)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/ServiceActivator.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -0,0 +1,61 @@
+/*
+ * 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.osgi.test.service.http;
+
+//$Id$
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * A Service Activator
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 04-Feb-2009
+ */
+public class ServiceActivator implements BundleActivator
+{
+  private ServiceRegistration registration;
+  
+  /*
+   * Implements BundleActivator.start(). 
+   * Registers an instance of a HttpEndpoint Service using the bundle context.
+   */
+  public void start(BundleContext context)
+  {
+    EndpointService service = new EndpointService(context);
+    registration = context.registerService(EndpointService.class.getName(), service, null);
+  }
+
+  /*
+   * Implements BundleActivator.stop(). 
+   */
+  public void stop(BundleContext context)
+  {
+    if (registration != null)
+    {
+      registration.unregister();
+      registration = null;
+    }
+  }
+}
\ No newline at end of file


Property changes on: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/ServiceActivator.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:mergeinfo
   + 
Name: svn:eol-style
   + LF

Modified: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/junit/EndpointServiceTest.java
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/junit/EndpointServiceTest.java	2009-02-12 10:22:55 UTC (rev 84119)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/http/junit/EndpointServiceTest.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -43,7 +43,7 @@
 {
   public static Test suite()
   {
-    return new IntegrationTestSetup(EndpointServiceTest.class, "http-service-test.jar");
+    return new IntegrationTestSetup(EndpointServiceTest.class, "http-service.jar");
   }
   
   public void testServletAccess() throws Exception

Added: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/Foo.java
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/Foo.java	                        (rev 0)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/Foo.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -0,0 +1,32 @@
+/*
+ * 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.osgi.test.service.microcontainer;
+
+//$Id$
+
+public class Foo implements FooMBean
+{
+	public String echo(String msg)
+	{
+		return msg;
+	}
+}


Property changes on: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/Foo.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/FooMBean.java
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/FooMBean.java	                        (rev 0)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/FooMBean.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -0,0 +1,29 @@
+/*
+ * 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.osgi.test.service.microcontainer;
+
+//$Id$
+
+public interface FooMBean 
+{
+	String echo(String msg);
+}


Property changes on: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/FooMBean.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/MBeanTestService.java
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/MBeanTestService.java	                        (rev 0)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/MBeanTestService.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -0,0 +1,106 @@
+/*
+ * 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.osgi.test.service.microcontainer;
+
+//$Id$
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+
+import org.jboss.osgi.service.MicrocontainerService;
+import org.jboss.osgi.spi.ObjectNameFactory;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceEvent;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+
+/**
+ * A service that registers an MBean
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 23-Jan-2009
+ */
+public class MBeanTestService implements ServiceListener
+{
+  private ObjectName oname = ObjectNameFactory.create("jboss.osgi:service=mbean-test-service");
+  
+  private BundleContext context;
+  private MBeanServer mbeanServer;
+
+  public MBeanTestService(BundleContext context)
+  {
+    this.context = context;
+    context.addServiceListener(this);
+  }
+  
+  private void registerService()
+  {
+    try
+    {
+    	MicrocontainerService mcService = getMicrocontainerService();
+    	mbeanServer = mcService.getMbeanServer();
+      mbeanServer.registerMBean(new Foo(), oname);
+    }
+    catch (Exception ex)
+    {
+      throw new RuntimeException("Cannot register mbean", ex);
+    }
+  }
+
+  private void unregisterService()
+  {
+    try
+    {
+      if (mbeanServer != null && mbeanServer.isRegistered(oname))
+        mbeanServer.unregisterMBean(oname);
+    }
+    catch (Exception ex)
+    {
+      throw new RuntimeException("Cannot unregister mbean", ex);
+    }
+  }
+
+  private MicrocontainerService getMicrocontainerService()
+  {
+    ServiceReference sref = context.getServiceReference(MicrocontainerService.class.getName());
+    if (sref == null)
+      throw new IllegalStateException("HttpService not registered");
+    
+    return (MicrocontainerService)context.getService(sref);
+  }
+
+  public void serviceChanged(ServiceEvent event)
+  {
+    Object service = context.getService(event.getServiceReference());
+    if (service == this)
+    {
+      if (event.getType() == ServiceEvent.REGISTERED)
+      {
+        registerService();
+      }
+      else if (event.getType() == ServiceEvent.UNREGISTERING)
+      {
+        unregisterService();
+      }
+    }
+  }
+}


Property changes on: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/MBeanTestService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/ServiceActivator.java
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/ServiceActivator.java	                        (rev 0)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/ServiceActivator.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -0,0 +1,54 @@
+/*
+ * 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.osgi.test.service.microcontainer;
+
+//$Id$
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceRegistration;
+
+/**
+ * A Service Activator
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 04-Feb-2009
+ */
+public class ServiceActivator implements BundleActivator
+{
+  private ServiceRegistration registration;
+  
+  public void start(BundleContext context)
+  {
+    MBeanTestService service = new MBeanTestService(context);
+    registration = context.registerService(MBeanTestService.class.getName(), service, null);
+  }
+
+  public void stop(BundleContext context)
+  {
+    if (registration != null)
+    {
+      registration.unregister();
+      registration = null;
+    }
+  }
+}
\ No newline at end of file


Property changes on: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/ServiceActivator.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/junit/MicrocontainerServiceTest.java
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/junit/MicrocontainerServiceTest.java	                        (rev 0)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/junit/MicrocontainerServiceTest.java	2009-02-12 11:20:41 UTC (rev 84120)
@@ -0,0 +1,47 @@
+/*
+ * 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.osgi.test.service.microcontainer.junit;
+
+//$Id$
+
+import junit.framework.Test;
+
+import org.jboss.osgi.spi.junit.IntegrationTestCase;
+import org.jboss.osgi.spi.junit.IntegrationTestSetup;
+
+/**
+ * A test that deployes a bundle that registeres an MBean
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 12-Feb-2009
+ */
+public class MicrocontainerServiceTest extends IntegrationTestCase
+{
+  public static Test suite()
+  {
+    return new IntegrationTestSetup(MicrocontainerServiceTest.class, "microcontainer-service.jar");
+  }
+  
+  public void testMBeanAccess() throws Exception
+  {
+  }
+}
\ No newline at end of file


Property changes on: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/java/org/jboss/osgi/test/service/microcontainer/junit/MicrocontainerServiceTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Modified: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/http/http-service.bnd
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/http/http-service.bnd	2009-02-12 10:22:55 UTC (rev 84119)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/http/http-service.bnd	2009-02-12 11:20:41 UTC (rev 84120)
@@ -1,8 +1,8 @@
 # bnd build -classpath target/test-classes -output target/test-libs/http-service.jar src/test/resources/service/http/http-service.bnd
 
 Bundle-SymbolicName: http-service-test
-Bundle-Activator: org.jboss.osgi.test.service.http.EndpointActivator
-Export-Package: org.jboss.osgi.test.service.http;uses:="javax.servlet,org.osgi.framework,org.osgi.service.http,javax.servlet.http"
+Bundle-Activator: org.jboss.osgi.test.service.http.ServiceActivator
+Export-Package: org.jboss.osgi.test.service.http
 Include-Resource: res/message.txt=message.txt
 
 # For some reason this does not work

Added: projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/microcontainer/microcontainer-service.bnd
===================================================================
--- projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/microcontainer/microcontainer-service.bnd	                        (rev 0)
+++ projects/jboss-felix/trunk/modules/integration/testsuite/src/test/resources/service/microcontainer/microcontainer-service.bnd	2009-02-12 11:20:41 UTC (rev 84120)
@@ -0,0 +1,5 @@
+# bnd build -classpath target/test-classes -output target/test-libs/microcontainer-service.jar src/test/resources/service/microcontainer/microcontainer-service.bnd
+
+Bundle-SymbolicName: microcontainer-service-test
+Bundle-Activator: org.jboss.osgi.test.service.microcontainer.ServiceActivator
+Export-Package: org.jboss.osgi.test.service.microcontainer




More information about the jboss-cvs-commits mailing list