This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 79c21df4548f28c9660fa7d13408488b4a5f002f
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Jul 25 11:08:20 2019 +0200

    Camel-Hl7: Forgot one test for BindToRegistry
---
 .../camel/component/hl7/HL7MLLPCodecPlainStringTest.java       | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git 
a/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecPlainStringTest.java
 
b/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecPlainStringTest.java
index 8755c94..e05c63b 100644
--- 
a/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecPlainStringTest.java
+++ 
b/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecPlainStringTest.java
@@ -16,11 +16,11 @@
  */
 package org.apache.camel.component.hl7;
 
+import org.apache.camel.BindToRegistry;
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
-import org.apache.camel.impl.JndiRegistry;
 import org.junit.Test;
 
 /**
@@ -29,15 +29,13 @@ import org.junit.Test;
  */
 public class HL7MLLPCodecPlainStringTest extends HL7TestSupport {
 
-    protected JndiRegistry createRegistry() throws Exception {
-        JndiRegistry jndi = super.createRegistry();
+    @BindToRegistry("hl7codec")
+    public HL7MLLPCodec addCodec() throws Exception {
 
         HL7MLLPCodec codec = new HL7MLLPCodec();
         codec.setCharset("iso-8859-1");
 
-        jndi.bind("hl7codec", codec);
-
-        return jndi;
+        return codec;
     }
 
     @Test

Reply via email to