Fixed test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f491d9c1 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f491d9c1 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f491d9c1 Branch: refs/heads/camel-2.12.x Commit: f491d9c1a18825de303f413e33f6a387eeb5bb13 Parents: 28d331c Author: Claus Ibsen <davscl...@apache.org> Authored: Mon Feb 24 17:53:10 2014 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Mon Feb 24 17:55:33 2014 +0100 ---------------------------------------------------------------------- components/camel-blueprint/pom.xml | 5 +++++ .../org/apache/camel/blueprint/BlueprintJaxbTest.java | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/f491d9c1/components/camel-blueprint/pom.xml ---------------------------------------------------------------------- diff --git a/components/camel-blueprint/pom.xml b/components/camel-blueprint/pom.xml index 31b39df..eb5fa0e 100644 --- a/components/camel-blueprint/pom.xml +++ b/components/camel-blueprint/pom.xml @@ -86,6 +86,11 @@ <!-- for testing --> <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-test</artifactId> + <scope>test</scope> + </dependency> + <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> http://git-wip-us.apache.org/repos/asf/camel/blob/f491d9c1/components/camel-blueprint/src/test/java/org/apache/camel/blueprint/BlueprintJaxbTest.java ---------------------------------------------------------------------- diff --git a/components/camel-blueprint/src/test/java/org/apache/camel/blueprint/BlueprintJaxbTest.java b/components/camel-blueprint/src/test/java/org/apache/camel/blueprint/BlueprintJaxbTest.java index 9ea5abc..2c49753 100644 --- a/components/camel-blueprint/src/test/java/org/apache/camel/blueprint/BlueprintJaxbTest.java +++ b/components/camel-blueprint/src/test/java/org/apache/camel/blueprint/BlueprintJaxbTest.java @@ -27,18 +27,18 @@ import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.apache.camel.blueprint.handler.CamelNamespaceHandler; - +import org.apache.camel.test.junit4.TestSupport; import org.junit.Test; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; - - -public class BlueprintJaxbTest { +public class BlueprintJaxbTest extends TestSupport { @Test public void test() throws Exception { + if (isJava16() && isJavaVendor("ibm")) { + // does not test well on java6 with ibm + return; + } + DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = dbf.newDocumentBuilder();