From: Erik Brakkee Date: Tue, 16 Aug 2011 20:30:03 +0000 (+0200) Subject: First steps towards pax-exam automated incontainer tests. X-Git-Tag: PAX_EXAM_MOCKITO_ISSUE^0 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=53d7d84ea5e71c39b2dbeffaf520a33ae3c13249;p=xmlrouter First steps towards pax-exam automated incontainer tests. --- diff --git a/integrationtest/pom.xml b/integrationtest/pom.xml new file mode 100644 index 0000000..83f9459 --- /dev/null +++ b/integrationtest/pom.xml @@ -0,0 +1,120 @@ + + + + + org.wamblee.xmlrouter + xmlrouter-root + 0.1.0-SNAPSHOT + + + 4.0.0 + xmlrouter-integrationtest + jar + /xmlrouter/integrationtest + http://wamblee.org + + + + org.wamblee.xmlrouter + xmlrouter-common + 0.1.0-SNAPSHOT + + + org.wamblee.xmlrouter + xmlrouter-config + 0.1.0-SNAPSHOT + + + org.wamblee.xmlrouter + xmlrouter-listener + 0.1.0-SNAPSHOT + + + org.wamblee.xmlrouter + xmlrouter-publish + 0.1.0-SNAPSHOT + + + org.wamblee.xmlrouter + xmlrouter-subscribe + 0.1.0-SNAPSHOT + + + + junit + junit + + + org.mockito + mockito-all + + + + + org.osgi + org.osgi.core + 4.2.0 + + + org.osgi + org.osgi.compendium + 4.2.0 + + + + + + org.ops4j.pax.exam + pax-exam-junit4 + + + + + org.ops4j.pax.exam + pax-exam-link-mvn + + + + + org.ops4j.pax.exam + pax-exam-container-native + + + + + org.ops4j.pax.url + pax-url-aether + + + + + org.apache.felix + org.apache.felix.framework + + + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${pom.groupId}.${pom.artifactId} + + + + + + + + + xmlrouter-site + file:${distrib}/cache + + + + diff --git a/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java b/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java new file mode 100644 index 0000000..cfd3625 --- /dev/null +++ b/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java @@ -0,0 +1,48 @@ +/* + * Copyright 2005-2011 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.wamblee.xmlrouter.integrationtest; + +import static org.ops4j.pax.exam.CoreOptions.*; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.ops4j.pax.exam.Option; +import org.ops4j.pax.exam.junit.Configuration; +import org.ops4j.pax.exam.junit.JUnit4TestRunner; +import org.osgi.framework.BundleContext; + +@RunWith(JUnit4TestRunner.class) +public class XmlRouterIntegrationTest { + + @Configuration() + public Option[] config() { + return options(junitBundles(), + // mockito 1.7 + // wrappedBundle(mavenBundle().groupId("org.mockito") + // .artifactId("mockito-all").version("1.7")), + // mockito 1.8.5 + mavenBundle().groupId("org.mockito").artifactId("mockito-all") + .version("1.8.5"), // + felix()); + } + + @Test + public void test1(BundleContext aContext) { + System.out.println("=== Got context " + aContext); + + } + +} diff --git a/pom.xml b/pom.xml index 10df9a9..37c993a 100644 --- a/pom.xml +++ b/pom.xml @@ -33,6 +33,9 @@ 0.5 + 2.2.0 + 1.7.4 + 1.3.4 @@ -42,6 +45,7 @@ subscribe router listener + integrationtest + + org.osgi + org.osgi.core + 4.2.0 + + + org.osgi + org.osgi.compendium + 4.2.0 + + + + + + org.ops4j.pax.exam + pax-exam-container-paxrunner + ${pax.exam.version} + test + + + + + org.ops4j.pax.runner + pax-runner-no-jcl + ${pax.runner.version} + test + + + + + org.ops4j.pax.exam + pax-exam-junit4 + ${pax.exam.version} + test + + + + + org.ops4j.pax.exam + pax-exam-link-mvn + ${pax.exam.version} + test + + + + + org.ops4j.pax.exam + pax-exam-container-native + ${pax.exam.version} + test + + + + + org.ops4j.pax.url + pax-url-aether + ${pax.url.version} + test + + + + + org.apache.felix + org.apache.felix.framework + 3.2.2 + test + + @@ -136,6 +210,21 @@ + + org.apache.servicemix.tooling + depends-maven-plugin + 1.2 + + + generate-depends-file + + generate-depends-file + + + + + + org.apache.maven.plugins maven-release-plugin