servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r890419 - /servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java
Date Mon, 14 Dec 2009 18:08:12 GMT
Author: jbonofre
Date: Mon Dec 14 18:08:11 2009
New Revision: 890419

URL: http://svn.apache.org/viewvc?rev=890419&view=rev
Log:
Keep on servicemix-exec component bundle deployment.

Modified:
    servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java

Modified: servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java
URL: http://svn.apache.org/viewvc/servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java?rev=890419&r1=890418&r2=890419&view=diff
==============================================================================
--- servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java
(original)
+++ servicemix/components/engines/servicemix-exec/trunk/src/test/java/org/apache/servicemix/exec/tests/smx4/ExecTest.java
Mon Dec 14 18:08:11 2009
@@ -26,9 +26,14 @@
 
 import org.junit.Test;
 import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.CoreOptions;
+import org.ops4j.pax.exam.Inject;
 import org.ops4j.pax.exam.Option;
 import org.ops4j.pax.exam.junit.Configuration;
 import org.ops4j.pax.exam.junit.JUnit4TestRunner;
+import org.ops4j.pax.exam.options.MavenArtifactProvisionOption;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
 
 /**
  * <p>
@@ -39,10 +44,15 @@
  */
 @RunWith(JUnit4TestRunner.class)
 public class ExecTest {
+    
+    @Inject
+    protected BundleContext bundleContext;
 
     @Test
     public void test() throws Exception {
-        
+        MavenArtifactProvisionOption execUrl = CoreOptions.mavenBundle().groupId("org.apache.servicemix").artifactId("servicemix-exec").versionAsInProject();
+        Bundle execBundle = bundleContext.installBundle(execUrl.getURL());
+        System.out.println(execBundle);
     }
 
     @Configuration



Mime
View raw message