Re-structure the test suites, use withiPOJO and OSGi test helpers.
Also update some test to the latest tinybundles.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@939968 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/tests/composite/composite-runtime/pom.xml b/ipojo/tests/composite/composite-runtime/pom.xml
index 9f9ca74..9cf023a 100644
--- a/ipojo/tests/composite/composite-runtime/pom.xml
+++ b/ipojo/tests/composite/composite-runtime/pom.xml
@@ -16,7 +16,14 @@
   specific language governing permissions and limitations

   under the License.

 -->

-<project>

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+  <parent>

+  	<groupId>ipojo.tests</groupId>

+  	<artifactId>ipojo.tests</artifactId>

+  	<version>1.5.0-SNAPSHOT</version>

+  </parent>

+

   <modelVersion>4.0.0</modelVersion>

   <packaging>bundle</packaging>

   <name>iPOJO Composite Test Suite</name>

@@ -37,12 +44,15 @@
     <dependency>

       <groupId>org.apache.felix</groupId>

       <artifactId>org.apache.felix.ipojo.metadata</artifactId>

-      <version>1.4.0</version>

     </dependency>

     <dependency>

-      <groupId>org.apache.felix</groupId>

+      <groupId>org.osgi</groupId>

       <artifactId>org.osgi.core</artifactId>

-      <version>1.0.1</version>

+    </dependency>

+    <dependency>

+      <groupId>org.osgi</groupId>

+      <artifactId>org.osgi.compendium</artifactId>

+      <version>4.0.0</version>

     </dependency>

     <dependency>

       <groupId>junit</groupId>

@@ -60,7 +70,6 @@
       <plugin>

         <groupId>org.apache.felix</groupId>

         <artifactId>maven-bundle-plugin</artifactId>

-        <version>1.4.3</version>

         <extensions>true</extensions>

         <configuration>

           <instructions>

@@ -82,7 +91,6 @@
       <plugin>

         <groupId>org.apache.felix</groupId>

         <artifactId>maven-ipojo-plugin</artifactId>

-        <version>1.6.0</version>

         <executions>

           <execution>

             <goals>

diff --git a/ipojo/tests/composite/import-export/pom.xml b/ipojo/tests/composite/import-export/pom.xml
index 2ee3f3d..51846fe 100644
--- a/ipojo/tests/composite/import-export/pom.xml
+++ b/ipojo/tests/composite/import-export/pom.xml
@@ -16,7 +16,14 @@
   specific language governing permissions and limitations

   under the License.

 -->

-<project>

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+  <parent>

+  	<groupId>ipojo.tests</groupId>

+  	<artifactId>ipojo.tests</artifactId>

+  	<version>1.5.0-SNAPSHOT</version>

+  </parent>

+

   <modelVersion>4.0.0</modelVersion>

   <packaging>bundle</packaging>

   <name>iPOJO Composite (Service Import/Export) Test Suite</name>

@@ -35,14 +42,17 @@
       <version>1.7.0-SNAPSHOT</version>

     </dependency>

     <dependency>

-      <groupId>org.apache.felix</groupId>

-      <artifactId>org.apache.felix.ipojo.metadata</artifactId>

-      <version>1.4.0</version>

+      <groupId>org.osgi</groupId>

+      <artifactId>org.osgi.compendium</artifactId>

+      <version>4.0.0</version>

     </dependency>

     <dependency>

       <groupId>org.apache.felix</groupId>

+      <artifactId>org.apache.felix.ipojo.metadata</artifactId>

+    </dependency>

+    <dependency>

+      <groupId>org.osgi</groupId>

       <artifactId>org.osgi.core</artifactId>

-      <version>1.0.1</version>

     </dependency>

     <dependency>

       <groupId>junit</groupId>

@@ -65,7 +75,6 @@
       <plugin>

         <groupId>org.apache.felix</groupId>

         <artifactId>maven-bundle-plugin</artifactId>

-        <version>1.4.3</version>

         <extensions>true</extensions>

         <configuration>

           <instructions>

@@ -84,7 +93,6 @@
       <plugin>

         <groupId>org.apache.felix</groupId>

         <artifactId>maven-ipojo-plugin</artifactId>

-        <version>${pom.version}</version>

         <executions>

           <execution>

             <goals>

diff --git a/ipojo/tests/composite/service-instance/pom.xml b/ipojo/tests/composite/service-instance/pom.xml
index de19e9d..bd6acc6 100644
--- a/ipojo/tests/composite/service-instance/pom.xml
+++ b/ipojo/tests/composite/service-instance/pom.xml
@@ -16,7 +16,14 @@
 	specific language governing permissions and limitations

 	under the License.

 -->

-<project>

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+  <parent>

+  	<groupId>ipojo.tests</groupId>

+  	<artifactId>ipojo.tests</artifactId>

+  	<version>1.5.0-SNAPSHOT</version>

+  </parent>

+

 	<modelVersion>4.0.0</modelVersion>

 	<packaging>bundle</packaging>

 	<name>iPOJO Composite (Service Instance) Test Suite</name>

@@ -37,14 +44,17 @@
 		<dependency>

 			<groupId>org.apache.felix</groupId>

 			<artifactId>org.apache.felix.ipojo.metadata</artifactId>

-			<version>1.4.0</version>

 		</dependency>

 		<dependency>

-			<groupId>org.apache.felix</groupId>

+			<groupId>org.osgi</groupId>

 			<artifactId>org.osgi.core</artifactId>

-			<version>1.0.1</version>

 		</dependency>

 		<dependency>

+      		<groupId>org.osgi</groupId>

+      		<artifactId>org.osgi.compendium</artifactId>

+     		<version>4.0.0</version>

+    	</dependency>

+		<dependency>

 			<groupId>junit</groupId>

 			<artifactId>junit</artifactId>

 			<version>3.8.1</version>

@@ -65,7 +75,6 @@
 			<plugin>

 				<groupId>org.apache.felix</groupId>

 				<artifactId>maven-bundle-plugin</artifactId>

-				<version>1.4.3</version>

 				<extensions>true</extensions>

 				<configuration>

 					<instructions>

@@ -85,7 +94,6 @@
 			<plugin>

 				<groupId>org.apache.felix</groupId>

 				<artifactId>maven-ipojo-plugin</artifactId>

-				<version>1.6.0</version>

 				<executions>

 					<execution>

 						<goals>

diff --git a/ipojo/tests/composite/service-providing/pom.xml b/ipojo/tests/composite/service-providing/pom.xml
index 35d970a..eebf766 100644
--- a/ipojo/tests/composite/service-providing/pom.xml
+++ b/ipojo/tests/composite/service-providing/pom.xml
@@ -16,8 +16,15 @@
 	specific language governing permissions and limitations

 	under the License.

 -->

-<project>

-	<modelVersion>4.0.0</modelVersion>

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

+  <parent>

+  	<groupId>ipojo.tests</groupId>

+  	<artifactId>ipojo.tests</artifactId>

+  	<version>1.5.0-SNAPSHOT</version>

+  </parent>

+

+  	<modelVersion>4.0.0</modelVersion>

 	<packaging>bundle</packaging>

 	<name>iPOJO Composite (Service Providing) Test Suite</name>

 	<artifactId>tests.composite.service.providing</artifactId>

@@ -37,12 +44,15 @@
 		<dependency>

 			<groupId>org.apache.felix</groupId>

 			<artifactId>org.apache.felix.ipojo.metadata</artifactId>

-			<version>1.4.0</version>

 		</dependency>

 		<dependency>

-			<groupId>org.apache.felix</groupId>

+			<groupId>org.osgi</groupId>

 			<artifactId>org.osgi.core</artifactId>

-			<version>1.0.1</version>

+		</dependency>

+		<dependency>

+			<groupId>org.osgi</groupId>

+			<artifactId>org.osgi.compendium</artifactId>

+			<version>4.0.0</version>

 		</dependency>

 		<dependency>

 			<groupId>junit</groupId>

@@ -65,7 +75,6 @@
 			<plugin>

 				<groupId>org.apache.felix</groupId>

 				<artifactId>maven-bundle-plugin</artifactId>

-				<version>1.4.3</version>

 				<extensions>true</extensions>

 				<configuration>

 					<instructions>

@@ -84,7 +93,6 @@
 			<plugin>

 				<groupId>org.apache.felix</groupId>

 				<artifactId>maven-ipojo-plugin</artifactId>

-				<version>1.6.0</version>

 				<executions>

 					<execution>

 						<goals>