From: Erik Brakkee Date: Thu, 18 Aug 2011 20:48:57 +0000 (+0200) Subject: cleanest workaround for junit/mockito problems so far by putting them on the global... X-Git-Url: http://wamblee.org/gitweb/?p=xmlrouter;a=commitdiff_plain;h=b864b58da6b011592e3c14f99f3282771d22d9ff cleanest workaround for junit/mockito problems so far by putting them on the global classpath instead of using modules. --- diff --git a/integrationtest/pom.xml b/integrationtest/pom.xml index fe3daa8..cd66194 100644 --- a/integrationtest/pom.xml +++ b/integrationtest/pom.xml @@ -45,16 +45,20 @@ + + @@ -70,15 +74,15 @@ - + - + - - + diff --git a/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java b/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java index a07a137..4ba0dc8 100644 --- a/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java +++ b/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java @@ -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);