]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - sandbox/argeo.slc.jemmytest/src/main/java/org/argeo/slc/jemmytest/JemmyTestActivator.java
Restructure Jemmy tests prototype
[gpl/argeo-slc.git] / sandbox / argeo.slc.jemmytest / src / main / java / org / argeo / slc / jemmytest / JemmyTestActivator.java
index 6047f83d6aa9a54bee5740b9a5aebbe3a6a2c1d3..f33855fbc32cec44c859989a39e0bd768e39a68c 100644 (file)
@@ -1,5 +1,8 @@
 package org.argeo.slc.jemmytest;
 
+import java.util.Properties;
+
+import org.argeo.slc.autoui.AutoUiApplication;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceEvent;
@@ -9,6 +12,12 @@ public class JemmyTestActivator implements BundleActivator, ServiceListener {
 
        public void start(BundleContext context) throws Exception {
                stdOut("JemmyTest started");
+               Properties properties = new Properties();
+               AutoUiApplicationJemmy applicationJemmy = new AutoUiApplicationJemmy();
+               context.registerService(AutoUiApplication.class.getName(),
+                               applicationJemmy, properties);
+               context.registerService(Runnable.class.getName(), applicationJemmy,
+                               properties);
 
 //             ServiceReference ref = context
 //                             .getServiceReference("org.argeo.slc.autoui.AutoUiApplication");