You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by rw...@apache.org on 2009/12/03 09:38:35 UTC

svn commit: r886704 - in /geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src: main/java/org/apache/geronimo/blueprint/jmx/impl/ main/java/org/apache/geronimo/blueprint/jmx/impl/codec/ test/ test/java/ test/java/org/ test/java/org/apache/ t...

Author: rwonly
Date: Thu Dec  3 08:38:34 2009
New Revision: 886704

URL: http://svn.apache.org/viewvc?rev=886704&view=rev
Log:
A small fix and unit test initializing. thanks Siqi for the fix!

Added:
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintMetadataTest.java
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintStateTest.java
Modified:
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/Activator.java
    geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/codec/BPBeanArgument.java

Modified: geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/Activator.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/Activator.java?rev=886704&r1=886703&r2=886704&view=diff
==============================================================================
--- geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/Activator.java (original)
+++ geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/Activator.java Thu Dec  3 08:38:34 2009
@@ -8,20 +8,15 @@
 import javax.management.InstanceNotFoundException;
 import javax.management.MBeanRegistrationException;
 import javax.management.MBeanServer;
-import javax.management.MBeanServerFactory;
 import javax.management.NotCompliantMBeanException;
 import javax.management.ObjectName;
 import javax.management.StandardMBean;
-import javax.management.remote.JMXConnectorServer;
-import javax.management.remote.JMXConnectorServerFactory;
-import javax.management.remote.JMXServiceURL;
 
 import org.apache.geronimo.blueprint.jmx.BlueprintMetadataMBean;
 import org.apache.geronimo.blueprint.jmx.BlueprintStateMBean;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceReference;
-import org.osgi.framework.ServiceRegistration;
 import org.osgi.util.tracker.ServiceTracker;
 import org.osgi.util.tracker.ServiceTrackerCustomizer;
 
@@ -29,8 +24,6 @@
 
     protected BundleContext bundleContext;
 
-
-
     protected StandardMBean blueprintState;
     protected ObjectName blueprintStateName;
 

Modified: geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/codec/BPBeanArgument.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/codec/BPBeanArgument.java?rev=886704&r1=886703&r2=886704&view=diff
==============================================================================
--- geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/codec/BPBeanArgument.java (original)
+++ geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/main/java/org/apache/geronimo/blueprint/jmx/impl/codec/BPBeanArgument.java Thu Dec  3 08:38:34 2009
@@ -38,7 +38,7 @@
         items.put(BlueprintMetadataMBean.VALUE_TYPE, valueType);
 
         try {
-            return new CompositeDataSupport(BlueprintMetadataMBean.BEAN_PROPERTY_TYPE, items);
+            return new CompositeDataSupport(BlueprintMetadataMBean.BEAN_ARGUMENT_TYPE, items);
         } catch (OpenDataException e) {
             throw new RuntimeException(e);
         }

Added: geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintMetadataTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintMetadataTest.java?rev=886704&view=auto
==============================================================================
--- geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintMetadataTest.java (added)
+++ geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintMetadataTest.java Thu Dec  3 08:38:34 2009
@@ -0,0 +1,33 @@
+package org.apache.geronimo.blueprint.jmx.impl.test;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class BlueprintMetadataTest {
+    
+    @Test
+    public void testGetBlueprintContainerServiceId(){
+        
+    }
+    
+    @Test 
+    public void testGetBlueprintContainerServiceIds(){
+    
+    }
+    
+    @Test
+    public void testGetComponentIds(){
+        
+    }
+    
+    @Test
+    public void testGetComponentIdsByType(){
+        
+    }
+    
+    @Test
+    public void testGetComponentMetadata(){
+        
+    }
+    
+}

Added: geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintStateTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintStateTest.java?rev=886704&view=auto
==============================================================================
--- geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintStateTest.java (added)
+++ geronimo/sandbox/rex/org.apache.geronimo.blueprint.jmx.impl/src/test/java/org/apache/geronimo/blueprint/jmx/impl/test/BlueprintStateTest.java Thu Dec  3 08:38:34 2009
@@ -0,0 +1,23 @@
+package org.apache.geronimo.blueprint.jmx.impl.test;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class BlueprintStateTest {
+    
+    @Test
+    public void testGetBlueprintBundleIds(){
+        
+    }
+    
+    @Test
+    public void testGetLastEvent(){
+        
+    }
+    
+    @Test
+    public void testGetLastEvents(){
+        
+    }
+    
+}