[jboss-cvs] JBossAS SVN: r93667 - in projects/jboss-osgi/trunk/testsuite/example/src/test: resources/blueprint and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 18 02:45:22 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-09-18 02:45:22 -0400 (Fri, 18 Sep 2009)
New Revision: 93667

Removed:
   projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintStressTestCase.java
Modified:
   projects/jboss-osgi/trunk/testsuite/example/src/test/resources/blueprint/example-blueprint.bnd
Log:
[JBOSGI-155] OutOfMemoryError on repeated install/unstall bundle
Restore example test resources

Deleted: projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintStressTestCase.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintStressTestCase.java	2009-09-18 03:34:37 UTC (rev 93666)
+++ projects/jboss-osgi/trunk/testsuite/example/src/test/java/org/jboss/test/osgi/example/blueprint/BlueprintStressTestCase.java	2009-09-18 06:45:22 UTC (rev 93667)
@@ -1,87 +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.example.blueprint;
-
-//$Id: BlueprintTestCase.java 91550 2009-07-22 13:10:41Z thomas.diesler at jboss.com $
-
-import static org.junit.Assert.assertNotNull;
-
-import org.jboss.osgi.blueprint.BlueprintCapability;
-import org.jboss.osgi.spi.testing.OSGiBundle;
-import org.jboss.osgi.spi.testing.OSGiRuntime;
-import org.jboss.osgi.spi.testing.OSGiServiceReference;
-import org.jboss.osgi.spi.testing.OSGiTestHelper;
-import org.jboss.test.osgi.example.blueprint.bundle.ServiceA;
-import org.jboss.test.osgi.example.blueprint.bundle.ServiceB;
-import org.junit.Ignore;
-import org.junit.Test;
-import org.osgi.service.blueprint.container.BlueprintContainer;
-
-/**
- * A simple Blueprint Container test.
- * 
- * @author thomas.diesler at jboss.com
- * @since 12-Jul-2009
- */
-public class BlueprintStressTestCase
-{
-   @Test
-   @Ignore
-   public void testBlueprintBundleInstall() throws Exception
-   {
-      OSGiRuntime runtime = new OSGiTestHelper().getDefaultRuntime();
-      BlueprintCapability blueprintCapability = new BlueprintCapability();
-      try
-      {
-         long lastTime = System.currentTimeMillis();
-         for (int i = 0; i < 100; i++)
-         {
-            runtime.addCapability(blueprintCapability);
-
-            OSGiBundle bundle = runtime.installBundle("example-blueprint.jar");
-            bundle.start();
-
-            OSGiServiceReference sref = runtime.getServiceReference(BlueprintContainer.class.getName());
-            assertNotNull("BlueprintContainer service not null", sref);
-
-            OSGiServiceReference srefA = runtime.getServiceReference(ServiceA.class.getName());
-            assertNotNull("ServiceA not null", srefA);
-
-            OSGiServiceReference srefB = runtime.getServiceReference(ServiceB.class.getName());
-            assertNotNull("ServiceB not null", srefB);
-
-            bundle.uninstall();
-            runtime.removeCapability(blueprintCapability);
-
-            long currTime = System.currentTimeMillis();
-            System.out.println("#" + (i + 1) + " " + (currTime - lastTime) + "ms ");
-
-            //Thread.sleep(2000);
-            lastTime = currTime;
-         }
-      }
-      finally
-      {
-         runtime.shutdown();
-      }
-   }
-}
\ No newline at end of file

Modified: projects/jboss-osgi/trunk/testsuite/example/src/test/resources/blueprint/example-blueprint.bnd
===================================================================
--- projects/jboss-osgi/trunk/testsuite/example/src/test/resources/blueprint/example-blueprint.bnd	2009-09-18 03:34:37 UTC (rev 93666)
+++ projects/jboss-osgi/trunk/testsuite/example/src/test/resources/blueprint/example-blueprint.bnd	2009-09-18 06:45:22 UTC (rev 93667)
@@ -11,7 +11,6 @@
 	org.jboss.osgi.husky.annotation, \
 	org.jboss.osgi.spi.capability, \
 	org.jboss.osgi.spi.testing, \
-	org.jboss.virtual, \
 	org.junit, \
 	org.osgi.framework, \
 	org.osgi.service.blueprint.* 




More information about the jboss-cvs-commits mailing list