[jboss-cvs] JBossAS SVN: r90238 - in projects/jboss-osgi/trunk/blueprint: testsuite/src/test/java/org/jboss/test/osgi/blueprint/context and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 16 04:14:25 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-06-16 04:14:25 -0400 (Tue, 16 Jun 2009)
New Revision: 90238

Modified:
   projects/jboss-osgi/trunk/blueprint/impl/pom.xml
   projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/context/BlueprintContextTestCase.java
Log:
Ignore BP impl in apidocs

Modified: projects/jboss-osgi/trunk/blueprint/impl/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/blueprint/impl/pom.xml	2009-06-16 08:03:11 UTC (rev 90237)
+++ projects/jboss-osgi/trunk/blueprint/impl/pom.xml	2009-06-16 08:14:25 UTC (rev 90238)
@@ -80,6 +80,19 @@
     </plugins>
   </build>
 
+  <!-- Reporting -->
+  <reporting>
+    <plugins>
+      <plugin>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <configuration>
+          <show>protected</show>
+          <excludePackageNames>org.jboss.osgi.*</excludePackageNames>
+        </configuration>
+      </plugin>
+    </plugins>
+  </reporting>
+
   <!-- Profiles -->
   <profiles>
   </profiles>

Modified: projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/context/BlueprintContextTestCase.java
===================================================================
--- projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/context/BlueprintContextTestCase.java	2009-06-16 08:03:11 UTC (rev 90237)
+++ projects/jboss-osgi/trunk/blueprint/testsuite/src/test/java/org/jboss/test/osgi/blueprint/context/BlueprintContextTestCase.java	2009-06-16 08:14:25 UTC (rev 90238)
@@ -55,7 +55,6 @@
    public static BundleContext context;
 
    private static OSGiRuntime runtime;
-   private static OSGiBundle bundle;
 
    @BeforeClass
    public static void beforeClass() throws Exception
@@ -67,7 +66,7 @@
          runtime.addCapability(new MicrocontainerCapability());
          runtime.addCapability(new BlueprintCapability());
          
-         bundle = runtime.installBundle("context-basic.jar");
+         OSGiBundle bundle = runtime.installBundle("context-basic.jar");
          bundle.start();
       }
    }
@@ -76,16 +75,11 @@
    public static void afterClass() throws Exception
    {
       if (context == null)
-      {
-         if (bundle != null)
-            bundle.uninstall();
-         
          runtime.shutdown();
-      }
    }
 
    @Test
-   public void testBlueprintContext() throws Exception
+   public void testBlueprintBundleInstall() throws Exception
    {
       if (context == null)
          BridgeFactory.getBridge().run();
@@ -94,8 +88,20 @@
       
       Bundle bundle = context.getBundle();
       assertEquals("context-basic", bundle.getSymbolicName());
+   }
+
+   @Test
+   public void testBlueprintContext() throws Exception
+   {
+      if (context == null)
+         BridgeFactory.getBridge().run();
       
+      assumeNotNull(context);
+      
       ServiceReference sref = context.getServiceReference(BlueprintContext.class.getName());
       assertNotNull("BlueprintContext registered", sref);
+      
+      BlueprintContext bpContext = (BlueprintContext)context.getService(sref);
+      
    }
 }
\ No newline at end of file




More information about the jboss-cvs-commits mailing list