Author: ningjiang
Date: Wed Jun 4 17:25:51 2008
New Revision: 663422
URL: http://svn.apache.org/viewvc?rev=663422&view=rev
Log:
Fixed the camel-mina build error
Modified:
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaComponentTest.java
Modified:
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaComponentTest.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaComponentTest.java?rev=663422&r1=663421&r2=663422&view=diff
==============================================================================
---
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaComponentTest.java
(original)
+++
activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaComponentTest.java
Wed Jun 4 17:25:51 2008
@@ -28,8 +28,7 @@
public void testUnknownProtocol() {
try {
- template.setDefaultEndpointUri("mina:xxx://localhost:8080");
- template.sendBody("mina:xxx://localhost:8080");
+ template.sendBody("mina:xxx://localhost:8080",
"mina:xxx://localhost:8080");
fail("Should have thrown a ResolveEndpointFailedException");
} catch (ResolveEndpointFailedException e) {
assertTrue("Should be an IAE exception", e.getCause() instanceof
IllegalArgumentException);
@@ -40,8 +39,7 @@
public void testMistypedProtocol() {
try {
// the protocol is mistyped as a colon is missing after tcp
- template.setDefaultEndpointUri("mina:tcp//localhost:8080");
- template.sendBody("mina:tcp//localhost:8080");
+ template.sendBody("mina:tcp//localhost:8080",
"mina:tcp//localhost:8080");
fail("Should have thrown a ResolveEndpointFailedException");
} catch (ResolveEndpointFailedException e) {
assertTrue("Should be an IAE exception", e.getCause() instanceof
IllegalArgumentException);