incubator-ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r821635 - /incubator/ace/trunk/test/src/org/apache/ace/test/repositoryadmin/Activator.java
Date Sun, 04 Oct 2009 22:54:55 GMT
Author: marrs
Date: Sun Oct  4 22:54:54 2009
New Revision: 821635

URL: http://svn.apache.org/viewvc?rev=821635&view=rev
Log:
Test now also waits for HttpService to come up.

Modified:
    incubator/ace/trunk/test/src/org/apache/ace/test/repositoryadmin/Activator.java

Modified: incubator/ace/trunk/test/src/org/apache/ace/test/repositoryadmin/Activator.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/test/src/org/apache/ace/test/repositoryadmin/Activator.java?rev=821635&r1=821634&r2=821635&view=diff
==============================================================================
--- incubator/ace/trunk/test/src/org/apache/ace/test/repositoryadmin/Activator.java (original)
+++ incubator/ace/trunk/test/src/org/apache/ace/test/repositoryadmin/Activator.java Sun Oct
 4 22:54:54 2009
@@ -44,6 +44,7 @@
 import org.osgi.service.cm.ConfigurationAdmin;
 import org.osgi.service.event.EventConstants;
 import org.osgi.service.event.EventHandler;
+import org.osgi.service.http.HttpService;
 
 /**
  * Activator for the integration test.
@@ -56,7 +57,6 @@
         manager.add(createService()
             .setImplementation(this)
             .add(createServiceDependency().setService(ConfigurationAdmin.class).setRequired(true)));
-        RepositoryAdminTest test = new RepositoryAdminTest();
         Dictionary<String, Object> topics = new Hashtable<String, Object>();
         topics.put(EventConstants.EVENT_TOPIC, new String[] {RepositoryObject.PUBLIC_TOPIC_ROOT
+ "*",
             RepositoryObject.PRIVATE_TOPIC_ROOT + "*",
@@ -65,7 +65,8 @@
             StatefulGatewayObject.TOPIC_ALL});
         manager.add(createService()
             .setInterface(EventHandler.class.getName(), topics)
-            .setImplementation(test)
+            .setImplementation(RepositoryAdminTest.class)
+            .add(createServiceDependency().setService(HttpService.class).setRequired(true))
             .add(createServiceDependency().setService(RepositoryAdmin.class).setRequired(true))
             .add(createServiceDependency().setService(ArtifactRepository.class).setRequired(true))
             .add(createServiceDependency().setService(Artifact2GroupAssociationRepository.class).setRequired(true))



Mime
View raw message