You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gg...@apache.org on 2015/03/13 17:18:26 UTC
camel git commit: Fix XstreamBlueprintRouteTest
Repository: camel
Updated Branches:
refs/heads/camel-2.15.x 0465e3578 -> 4c34a21e0
Fix XstreamBlueprintRouteTest
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4c34a21e
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4c34a21e
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4c34a21e
Branch: refs/heads/camel-2.15.x
Commit: 4c34a21e0c570e1ff1e56315332c6af9524a4db9
Parents: 0465e35
Author: Grzegorz Grzybek <gr...@gmail.com>
Authored: Fri Mar 13 17:17:53 2015 +0100
Committer: Grzegorz Grzybek <gr...@gmail.com>
Committed: Fri Mar 13 17:17:53 2015 +0100
----------------------------------------------------------------------
.../itest/osgi/xstream/XstreamBlueprintRouteTest.java | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/4c34a21e/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/xstream/XstreamBlueprintRouteTest.java
----------------------------------------------------------------------
diff --git a/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/xstream/XstreamBlueprintRouteTest.java b/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/xstream/XstreamBlueprintRouteTest.java
index 99ede54..2e99137 100644
--- a/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/xstream/XstreamBlueprintRouteTest.java
+++ b/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/xstream/XstreamBlueprintRouteTest.java
@@ -27,6 +27,8 @@ import org.junit.runner.RunWith;
import org.ops4j.pax.exam.Configuration;
import org.ops4j.pax.exam.Option;
+import org.ops4j.pax.exam.ProbeBuilder;
+import org.ops4j.pax.exam.TestProbeBuilder;
import org.ops4j.pax.exam.junit.PaxExam;
import org.ops4j.pax.tinybundles.core.TinyBundles;
import org.osgi.framework.Constants;
@@ -57,19 +59,24 @@ public class XstreamBlueprintRouteTest extends OSGiBlueprintTestSupport {
assertEquals(new SampleObject("1"), result);
}
+ @ProbeBuilder
+ public TestProbeBuilder probeConfiguration(TestProbeBuilder builder) {
+ builder.setHeader(Constants.EXPORT_PACKAGE, SampleObject.class.getPackage().getName());
+ return builder;
+ }
+
@Configuration
public static Option[] configure() throws Exception {
Option[] options = combine(
getDefaultCamelKarafOptions(),
provision(TinyBundles.bundle()
- .add(SampleObject.class)
.add(XstreamRouteBuilder.class)
.add("OSGI-INF/blueprint/test.xml", XstreamBlueprintRouteTest.class.getResource("blueprintCamelContext.xml"))
.set(Constants.BUNDLE_SYMBOLICNAME, "CamelBlueprintXstreamTestBundle")
.set(Constants.DYNAMICIMPORT_PACKAGE, "*")
.build()),
-
+
// using the features to install the camel components
loadCamelFeatures("xml-specs-api", "camel-blueprint", "camel-xstream"));
//vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"),