You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2009/04/29 21:56:45 UTC
svn commit: r769902 -
/camel/trunk/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecLongTest.java
Author: hadrian
Date: Wed Apr 29 19:56:44 2009
New Revision: 769902
URL: http://svn.apache.org/viewvc?rev=769902&view=rev
Log:
CAMEL-1566. Fix changed length due to different encoding.
Modified:
camel/trunk/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecLongTest.java
Modified: camel/trunk/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecLongTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecLongTest.java?rev=769902&r1=769901&r2=769902&view=diff
==============================================================================
--- camel/trunk/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecLongTest.java (original)
+++ camel/trunk/components/camel-hl7/src/test/java/org/apache/camel/component/hl7/HL7MLLPCodecLongTest.java Wed Apr 29 19:56:44 2009
@@ -53,7 +53,7 @@
public void configure() throws Exception {
from("mina:tcp://0.0.0.0:8888?sync=true&codec=#hl7codec").process(new Processor() {
public void process(Exchange exchange) throws Exception {
- assertEquals(70011, exchange.getIn().getBody().toString().length());
+ assertEquals(70008, exchange.getIn().getBody().toString().length());
MDM_T02 input = (MDM_T02)exchange.getIn().getBody(Message.class);
assertEquals("2.5", input.getVersion());
MSH msh = input.getMSH();
@@ -76,12 +76,9 @@
}
}
message = message.substring(0, message.length() - 1);
- assertEquals(70011, message.length());
- /*
- * CAMEL-1566. Blocker for considering the issue fixed
+ assertEquals(70008, message.length());
String out = (String)template.requestBody("mina:tcp://0.0.0.0:8888?sync=true&codec=#hl7codec", message);
assertEquals("some response", out);
- */
// END SNIPPET: e2
}