cleanest workaround for junit/mockito problems so far by putting them on the global...
authorErik Brakkee <erik@brakkee.org>
Thu, 18 Aug 2011 20:48:57 +0000 (22:48 +0200)
committerErik Brakkee <erik@brakkee.org>
Thu, 18 Aug 2011 20:48:57 +0000 (22:48 +0200)
integrationtest/pom.xml
integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java

index fe3daa8783a3bf46d60436087c47f2a275f49cb7..cd661946d6b67c098a6db0144357d854374f78aa 100644 (file)
         <!-- Pax exam -->
 
         <!-- only runner -->
+        <!--
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam-container-paxrunner</artifactId>
         </dependency>
+        -->
 
         <!-- only runner -->
+        <!--
         <dependency>
             <groupId>org.ops4j.pax.runner</groupId>
             <artifactId>pax-runner-no-jcl</artifactId>
         </dependency>
+        -->
 
 
         <!-- both runner and native -->
         </dependency>
 
         <!-- only native -->
-        <!--
+        
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam-container-native</artifactId>
         </dependency>
-        -->
+        
 
         <!-- only native -->
-        <!-- 
+         
         <dependency>
             <groupId>org.ops4j.pax.url</groupId>
             <artifactId>pax-url-aether</artifactId>
             <groupId>org.ops4j.pax.url</groupId>
             <artifactId>pax-url-wrap</artifactId>
         </dependency>
-        -->
+        
 
         <!-- only native -->
-        <!-- 
+         
         <dependency>
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.framework</artifactId>
         </dependency>
-        -->
-
+        
 
     </dependencies>
 
index a07a137b3f94e6db42b4dad602b4ebb722473741..4ba0dc895f78318c194c1708fdd7b985fdf47a14 100644 (file)
@@ -38,13 +38,15 @@ public class XmlRouterIntegrationTest {
         return options(
             cleanCaches(),
             // Test dependencies
-            wrappedBundle(mavenBundle().groupId("junit")
-                .artifactId("junit-dep").version("4.8.2")), //
-            mavenBundle().groupId("org.mockito").artifactId("mockito-all")
-                .version("1.8.5"), //
+            // wrappedBundle(mavenBundle().groupId("junit")
+            // .artifactId("junit-dep").version("4.8.2")), //
+            // mavenBundle().groupId("org.mockito").artifactId("mockito-all")
+            // .version("1.8.5"), //
             // junitBundles(),
             // mockitoBundles(),
 
+            systemPackages("org.mockito", "org.junit"),
+
             // XML Router API packages.
             mavenBundle().groupId("org.wamblee.xmlrouter")
                 .artifactId("xmlrouter-common").versionAsInProject(),//
@@ -70,7 +72,6 @@ public class XmlRouterIntegrationTest {
         System.out.println("=== Got context " + aContext);
 
         Destination dest = mock(Destination.class);
-        // verify(dest, never()).receive(any(DOMSource.class));
         ServiceRegistration registration = aContext.registerService(
             Destination.class.getName(), dest, null);