Repository: camel Updated Branches: refs/heads/master cfa101453 -> c8ff55bdc
CAMEL-7403: test update to camel-hl7 Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c8ff55bd Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c8ff55bd Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c8ff55bd Branch: refs/heads/master Commit: c8ff55bdcb027952a88a7573d1231fab722cd812 Parents: cfa1014 Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Aug 27 17:16:59 2014 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Aug 27 17:16:59 2014 +0200 ---------------------------------------------------------------------- .../apache/camel/component/hl7/MessageValidatorTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/c8ff55bd/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/MessageValidatorTest.java ---------------------------------------------------------------------- diff --git a/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/MessageValidatorTest.java b/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/MessageValidatorTest.java index 050e37d..8219cd2 100644 --- a/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/MessageValidatorTest.java +++ b/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/MessageValidatorTest.java @@ -69,7 +69,6 @@ public class MessageValidatorTest extends CamelTestSupport { } @Test(expected = CamelExecutionException.class) - @Ignore public void testCustomHapiContext() throws Exception { MockEndpoint mock = getMockEndpoint("mock:test5"); mock.expectedMessageCount(0); @@ -78,9 +77,16 @@ public class MessageValidatorTest extends CamelTestSupport { assertMockEndpointsSatisfied(); } + @Test + public void testDefaultValidationContext() throws Exception { + MockEndpoint mock = getMockEndpoint("mock:test1"); + mock.expectedMessageCount(1); + Message msg = createADT01Message(); + template.sendBody("direct:test1", msg); + assertMockEndpointsSatisfied(); + } @Test(expected = CamelExecutionException.class) - @Ignore public void testCustomValidationContext() throws Exception { MockEndpoint mock = getMockEndpoint("mock:test2"); mock.expectedMessageCount(0);