Fix equinox detection in the compatibility tests.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1529152 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByEquinoxSCR1_4_100.java b/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByEquinoxSCR1_4_100.java
index ec5fea0..ec16c7f 100644
--- a/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByEquinoxSCR1_4_100.java
+++ b/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByEquinoxSCR1_4_100.java
@@ -61,7 +61,7 @@
System.out.println("Test executed on Equinox only");
return;
}
- CheckService checker = osgiHelper.getServiceObject(CheckService.class);
+ CheckService checker = osgiHelper.waitForService(CheckService.class, null, 1000);
assertThat(checker).isNotNull();
assertThat(checker.data().get("result")).isEqualTo("hello john doe");
}
diff --git a/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByFelixSCR1_6_2.java b/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByFelixSCR1_6_2.java
index b9ed818..7cf8501 100644
--- a/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByFelixSCR1_6_2.java
+++ b/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestBeingConsumedByFelixSCR1_6_2.java
@@ -50,7 +50,7 @@
@Test
public void test() {
- CheckService checker = osgiHelper.getServiceObject(CheckService.class);
+ CheckService checker = osgiHelper.waitForService(CheckService.class, null, 1000);
assertThat(checker).isNotNull();
assertThat(checker.data().get("result")).isEqualTo("hello john doe");
}
diff --git a/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestConsumingProviderUsingEquinoxSCR1_4_100.java b/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestConsumingProviderUsingEquinoxSCR1_4_100.java
index f6bcf00..8cbb335 100644
--- a/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestConsumingProviderUsingEquinoxSCR1_4_100.java
+++ b/ipojo/runtime/core-it/ipojo-compatibility-test/src/test/java/org/apache/felix/ipojo/test/compatibility/TestConsumingProviderUsingEquinoxSCR1_4_100.java
@@ -22,6 +22,8 @@
import org.apache.felix.ipojo.test.compatibility.service.CheckService;
import org.junit.Test;
import org.ops4j.pax.exam.Option;
+import org.osgi.framework.Bundle;
+import org.ow2.chameleon.testing.helpers.Dumps;
import static org.fest.assertions.Assertions.assertThat;
import static org.ops4j.pax.exam.CoreOptions.bundle;
@@ -61,7 +63,7 @@
System.out.println("Test executed on Equinox only");
return;
}
- CheckService checker = osgiHelper.getServiceObject(CheckService.class);
+ CheckService checker = osgiHelper.waitForService(CheckService.class, null, 1000);
assertThat(checker).isNotNull();
assertThat(checker.data().get("result")).isEqualTo("hello john doe");
}
diff --git a/ipojo/runtime/core-it/pom.xml b/ipojo/runtime/core-it/pom.xml
index 4773244..c135d52 100644
--- a/ipojo/runtime/core-it/pom.xml
+++ b/ipojo/runtime/core-it/pom.xml
@@ -80,6 +80,8 @@
<systemPropertyVariables>
<!-- TIME_FACTOR can be set from the command line with -DTIME_FACTOR=9-->
<TIME_FACTOR>${TIME_FACTOR}</TIME_FACTOR>
+ <!-- Defined by the profiles -->
+ <pax.exam.framework>${pax.exam.framework}</pax.exam.framework>
</systemPropertyVariables>
<skipTests>${skipTestExecution}</skipTests>
</configuration>
@@ -316,6 +318,9 @@
<activation>
<activeByDefault>true</activeByDefault>
</activation>
+ <properties>
+ <pax.exam.framework>none</pax.exam.framework>
+ </properties>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>