cleanest workaround for junit/mockito problems so far by putting them on the global...
[xmlrouter] / integrationtest / src / test / java / org / wamblee / xmlrouter / integrationtest / XmlRouterIntegrationTest.java
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);