Felix-3903 - Set svn:ignore

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1449149 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/Common.java b/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/Common.java
index e22743e..df3b439 100644
--- a/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/Common.java
+++ b/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/Common.java
@@ -56,6 +56,7 @@
         root.setLevel(Level.INFO);
 
         return options(
+                cleanCaches(),
                 ipojoBundles(),
                 junitAndMockitoBundles(),
                 // No tested bundle in this project
@@ -69,18 +70,19 @@
                 repository("http://repository.springsource.com/maven/bundles/external").id(
                         "com.springsource.repository.bundles.external"),
 
-                // Mockito without Hamcrest and Objenesis
-                mavenBundle("org.mockito", "mockito-core", "1.9.5"),
-
                 // Hamcrest with a version matching the range expected by Mockito
                 mavenBundle("org.hamcrest", "com.springsource.org.hamcrest.core", "1.1.0"),
 
+                // Mockito core does not includes Hamcrest
+                mavenBundle("org.mockito", "mockito-core", "1.9.5"),
+
                 // Objenesis with a version matching the range expected by Mockito
                 wrappedBundle(mavenBundle("org.objenesis", "objenesis", "1.2"))
                         .exports("*;version=1.2"),
 
                 // The default JUnit bundle also exports Hamcrest, but with an (incorrect) version of
-                // 4.9 which does not match the Mockito import.
+                // 4.9 which does not match the Mockito import. When deployed after the hamcrest bundles, it gets
+                // resolved correctly.
                 CoreOptions.junitBundles(),
 
                 /*
@@ -94,7 +96,7 @@
                  * org/mockito/cglib/proxy/Factory have different Class objects for the type org/mockito/cglib/
                  * proxy/Callback used in the signature
                  *
-                 * So we disable the bootdelegation.
+                 * So we disable the bootdelegation. this property has no effect on the other OSGi implementation.
                  */
                 frameworkProperty("felix.bootdelegation.implicit").value("false")
         );
@@ -157,7 +159,7 @@
         osgiHelper.dispose();
     }
 
-    public CompositeOption ipojoBundles() {
+    public static CompositeOption ipojoBundles() {
         return new DefaultCompositeOption(
                 mavenBundle("org.apache.felix", "org.apache.felix.ipojo").versionAsInProject(),
                 mavenBundle("org.ow2.chameleon.testing", "osgi-helpers").versionAsInProject(),
diff --git a/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/DummyHandlerTest.java b/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/DummyHandlerTest.java
index 7b2d26a..b9ff42f 100644
--- a/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/DummyHandlerTest.java
+++ b/ipojo/runtime/core-it/src/it/ipojo-core-handler-test/src/test/java/org/apache/felix/ipojo/runtime/core/DummyHandlerTest.java
@@ -14,6 +14,7 @@
 import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
 import org.ops4j.pax.exam.spi.reactors.PerMethod;
 import org.ops4j.pax.tinybundles.core.TinyBundles;
+import org.osgi.framework.Constants;
 import org.osgi.framework.ServiceRegistration;
 import org.osgi.service.useradmin.User;
 import org.ow2.chameleon.testing.tinybundles.ipojo.IPOJOStrategy;
@@ -28,6 +29,8 @@
 import static org.mockito.Mockito.verify;
 import static org.ops4j.pax.exam.CoreOptions.bundle;
 import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
+import static org.ops4j.pax.exam.CoreOptions.streamBundle;
+import static org.ops4j.pax.tinybundles.core.TinyBundles.withBnd;
 
 
 @ExamReactorStrategy(PerMethod.class)
@@ -58,16 +61,19 @@
         File dummyJar = new File("target/bundles/dummy.jar");
         FileUtils.copyInputStreamToFile(
                 TinyBundles.bundle()
-                        .add(Dummy.class)
                         .add(DummyImpl.class)
-                        .set(org.osgi.framework.Constants.EXPORT_PACKAGE, "org.apache.felix.ipojo.runtime.core" +
-                                ".services")
                         .set(org.osgi.framework.Constants.BUNDLE_SYMBOLICNAME, "Dummy.Bundle")
                         .build(IPOJOStrategy.withiPOJO(new File("src/main/resources/dummy-component.xml"))),
                 dummyJar);
 
 
         return OptionUtils.combine(options,
+                streamBundle(TinyBundles.bundle()
+                        .add(Dummy.class)
+                        .set(Constants.EXPORT_PACKAGE, "org.apache.felix.ipojo.runtime.core.services")
+                        .set(Constants.BUNDLE_SYMBOLICNAME, "service")
+                        .build(withBnd())
+                ),
                 bundle(handlerJar.toURI().toURL().toExternalForm()),
                 bundle(dummyJar.toURI().toURL().toExternalForm()),
                 mavenBundle().groupId("org.apache.felix").artifactId("org.osgi.compendium").version("1.4.0"));