Repository: camel Updated Branches: refs/heads/camel-2.14.x 3515a52da -> a4fcbb625
Fix XstreamBlueprintRouteTest (cherry picked from commit 4c34a21e0c570e1ff1e56315332c6af9524a4db9) Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a4fcbb62 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a4fcbb62 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a4fcbb62 Branch: refs/heads/camel-2.14.x Commit: a4fcbb6250e63d7e77f5ca1656cc110b62a4d97a Parents: 3515a52 Author: Grzegorz Grzybek <gr.grzy...@gmail.com> Authored: Fri Mar 13 17:17:53 2015 +0100 Committer: Grzegorz Grzybek <gr.grzy...@gmail.com> Committed: Fri Mar 13 17:18:49 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/a4fcbb62/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"),