From 7f04c3ea832149210b5263c57b36347ac98fcf75 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Thu, 18 Aug 2011 12:52:43 +0200 Subject: [PATCH] Initial version with all API bundles deployed in the integraiton test. --- config/pom.xml | 4 -- integrationtest/pom.xml | 4 ++ .../XmlRouterIntegrationTest.java | 43 ++++++++++++-- listener/pom.xml | 6 ++ pom.xml | 11 +++- router/bundle/pom.xml | 59 +++++++++++++++++++ .../xmlrouter/bundle/XmlrouterActivator.java | 20 +++++++ router/impl/pom.xml | 4 ++ router/pom.xml | 1 + 9 files changed, 141 insertions(+), 11 deletions(-) create mode 100644 router/bundle/pom.xml create mode 100644 router/bundle/src/main/java/org/wamblee/xmlrouter/bundle/XmlrouterActivator.java diff --git a/config/pom.xml b/config/pom.xml index 7970c80..b4a27f0 100644 --- a/config/pom.xml +++ b/config/pom.xml @@ -19,10 +19,6 @@ xmlrouter-common 0.1.0-SNAPSHOT - - org.wamblee - wamblee-support-general - junit junit diff --git a/integrationtest/pom.xml b/integrationtest/pom.xml index 83f9459..17c2428 100644 --- a/integrationtest/pom.xml +++ b/integrationtest/pom.xml @@ -85,6 +85,10 @@ org.ops4j.pax.url pax-url-aether + + org.ops4j.pax.url + pax-url-wrap + 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 cfd3625..5f93ff8 100644 --- a/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java +++ b/integrationtest/src/test/java/org/wamblee/xmlrouter/integrationtest/XmlRouterIntegrationTest.java @@ -29,16 +29,49 @@ 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 + return options( + // Test dependencies + mavenBundle().groupId("junit").artifactId("junit-dep") + .version("4.8.2"), // mavenBundle().groupId("org.mockito").artifactId("mockito-all") .version("1.8.5"), // + + // Dependencies from wamblee utils (TODO create bundle of + // support-general with optional dependencies). + mavenBundle().groupId("org.eclipse.persistence") + .artifactId("javax.persistence").version("2.0.0"), // + wrappedBundle(mavenBundle().groupId("net.sf.ehcache") + .artifactId("ehcache-core").version("2.2.0")), // + + // XML Router API packages. + mavenBundle().groupId("org.wamblee.xmlrouter") + .artifactId("xmlrouter-common").versionAsInProject(),// + mavenBundle().groupId("org.wamblee.xmlrouter") + .artifactId("xmlrouter-config").versionAsInProject(),// + mavenBundle().groupId("org.wamblee.xmlrouter") + .artifactId("xmlrouter-publish").versionAsInProject(),// + mavenBundle().groupId("org.wamblee.xmlrouter") + .artifactId("xmlrouter-subscribe").versionAsInProject(),// + mavenBundle().groupId("org.wamblee.xmlrouter") + .artifactId("xmlrouter-listener").versionAsInProject(),// + + // OSGI runtimes felix()); } + /* + * @Configuration() public Option[] config() { return + * options(mavenBundle().groupId("junit").artifactId("junit-dep") + * .version("4.8.2"), // mockito 1.7 // + * wrappedBundle(mavenBundle().groupId("org.mockito") // + * .artifactId("mockito-all").version("1.7")), // mockito 1.8.5 // + * mavenBundle().groupId("org.objenesis").artifactId("objenesis") // + * .version("1.0"), // // mavenBundle("org.hamcrest", + * "hamcrest-core").version("1.1"),// + * 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/listener/pom.xml b/listener/pom.xml index c1db80e..0a635e9 100644 --- a/listener/pom.xml +++ b/listener/pom.xml @@ -14,6 +14,10 @@ http://wamblee.org + + org.wamblee + wamblee-support-general + org.wamblee.xmlrouter xmlrouter-config @@ -43,6 +47,8 @@ ${pom.groupId}.${pom.artifactId} + wamblee-support-general;scope=compile|runtime + lib diff --git a/pom.xml b/pom.xml index 37c993a..80ce380 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ - 0.5 + 0.8-SNAPSHOT 2.2.0 1.7.4 1.3.4 @@ -100,7 +100,7 @@ org.wamblee wamblee-support-general - 0.7-SNAPSHOT + ${wamblee.utils.version} org.wamblee @@ -192,6 +192,13 @@ ${pax.url.version} test + + + org.ops4j.pax.url + pax-url-wrap + ${pax.url.version} + test + diff --git a/router/bundle/pom.xml b/router/bundle/pom.xml new file mode 100644 index 0000000..458ceb1 --- /dev/null +++ b/router/bundle/pom.xml @@ -0,0 +1,59 @@ + + + + + org.wamblee.xmlrouter + xmlrouter-router + 0.1.0-SNAPSHOT + + + 4.0.0 + xmlrouter-router-bundle + bundle + /xmlrouter/router/bundle + http://wamblee.org + + + + + org.wamblee.xmlrouter + xmlrouter-router-impl + 0.1.0-SNAPSHOT + + + + junit + junit + + + org.mockito + mockito-all + + + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${pom.groupId}.${pom.artifactId} + *;scope=compile|runtime + lib + + + + + + + + + xmlrouter-site + file:${distrib}/cache + + + + diff --git a/router/bundle/src/main/java/org/wamblee/xmlrouter/bundle/XmlrouterActivator.java b/router/bundle/src/main/java/org/wamblee/xmlrouter/bundle/XmlrouterActivator.java new file mode 100644 index 0000000..03bb4a6 --- /dev/null +++ b/router/bundle/src/main/java/org/wamblee/xmlrouter/bundle/XmlrouterActivator.java @@ -0,0 +1,20 @@ +/* + * 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.bundle; + +public class XmlrouterActivator { + +} diff --git a/router/impl/pom.xml b/router/impl/pom.xml index afb3797..d146361 100644 --- a/router/impl/pom.xml +++ b/router/impl/pom.xml @@ -15,6 +15,10 @@ + + org.wamblee + wamblee-support-general + org.wamblee.xmlrouter xmlrouter-config diff --git a/router/pom.xml b/router/pom.xml index dd22d40..ae906b6 100644 --- a/router/pom.xml +++ b/router/pom.xml @@ -14,6 +14,7 @@ impl + bundle -- 2.31.1