cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r904574 - /cxf/dosgi/trunk/systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/AbstractTestDiscoveryRoundtrip.java
Date Fri, 29 Jan 2010 17:45:32 GMT
Author: davidb
Date: Fri Jan 29 17:45:31 2010
New Revision: 904574

URL: http://svn.apache.org/viewvc?rev=904574&view=rev
Log:
Some extra documentation in the Discovery system test.

Modified:
    cxf/dosgi/trunk/systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/AbstractTestDiscoveryRoundtrip.java

Modified: cxf/dosgi/trunk/systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/AbstractTestDiscoveryRoundtrip.java
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/AbstractTestDiscoveryRoundtrip.java?rev=904574&r1=904573&r2=904574&view=diff
==============================================================================
--- cxf/dosgi/trunk/systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/AbstractTestDiscoveryRoundtrip.java
(original)
+++ cxf/dosgi/trunk/systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/AbstractTestDiscoveryRoundtrip.java
Fri Jan 29 17:45:31 2010
@@ -61,6 +61,26 @@
     }
 
     public void baseTestDiscoveryRoundtrip() throws Exception {
+        // This test works as follows.
+        // 1. It loads the zookeeper server as a bundle and configures it and the client
to
+        //    it with a free port number to set up the zookeeper discovery infrastructure.
+        //    This is done through the Configuration Admin Service.
+        // 2. It has a server bundle and a client bundle. The server bundle exposes Test2Service
+        //    on a dynamically allocated port. The service method returns a stack trace from
the 
+        //    server in string format.
+        // 3. The client bundle is simply a client to an OSGi Service implementing the Test2Service.
+        //    It has the additional requirement that the service needs to have the service.imported

+        //    property set on the service reference. This is needed to for the lookup of
a proxy to
+        //    a remote service.
+        // 4. The client will automatically get a proxy to the remote service through the
discovery
+        //    system.
+        // 5. The client invokes the remote service and registers a service when the invocation

+        //    returns. It puts the return value (the remote stack trace) on that service
as a 
+        //    'result' property
+        // 6. The test code waits for this service to appear and then checks:
+        //    * That the stack trace doesn't contain the client package (so no direct invocation)
+        //    * That the stack trace contains the CXF transport and interceptor packages
+        
         for( Bundle b : getBundleContext().getBundles() )
         {
             System.out.println( "*** Bundle " + b.getBundleId() + " : " + b.getSymbolicName()
+ "/" + b.getState());



Mime
View raw message