Author: ningjiang
Date: Mon Sep 1 05:14:40 2008
New Revision: 690954
URL: http://svn.apache.org/viewvc?rev=690954&view=rev
Log:
CAMEL-873 Fixed the test failure in camel-mina
Modified:
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java
Modified:
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java?rev=690954&r1=690953&r2=690954&view=diff
==============================================================================
---
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java
(original)
+++
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaTcpWithInOutUsingPlainSocketTest.java
Mon Sep 1 05:14:40 2008
@@ -71,7 +71,7 @@
public void testExchangeFailedOutShouldBeNull() throws Exception {
String out = sendAndReceive("force-exception");
assertTrue("out should not be the same as in when the exchange has
failed", !"force-exception".equals(out));
- assertNull("no data should be retrieved", out);
+ assertEquals("should get the exception here", out,
"java.lang.IllegalArgumentException: Forced exception");
}
private String sendAndReceive(String input) throws IOException {