camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggrzy...@apache.org
Subject camel git commit: Fix XstreamBlueprintRouteTest
Date Fri, 13 Mar 2015 16:19:35 GMT
Repository: camel
Updated Branches:
  refs/heads/master 9287abdfb -> 8d5570a30


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/8d5570a3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/8d5570a3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/8d5570a3

Branch: refs/heads/master
Commit: 8d5570a30afa4cf161316a06869716bb01bd9102
Parents: 9287abd
Author: Grzegorz Grzybek <gr.grzybek@gmail.com>
Authored: Fri Mar 13 17:17:53 2015 +0100
Committer: Grzegorz Grzybek <gr.grzybek@gmail.com>
Committed: Fri Mar 13 17:19:18 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/8d5570a3/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"),


Mime
View raw message