Did you start any service which is listen to localhost:8088?
BTW, if you are using camel-http component, you need to put all the
dependencies of camel-http into your class path.
On Thu May 17 05:25:55 2012, Nestor Urquiza wrote:
Hi Camel team,
I was following the example from Camel In Action source code in
http://camelinaction.googlecode.com/svn/trunk/chapter6/firsttest/src/test/java/camelinaction/FirstTest.java
A little change to the route (commented line) is enough to stop the testing
method from running. Any idea why?
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
from("file://target/inbox")
.to("file://target/outbox")
//.to("http://localhost:8088")
;
}
};
}
I came to this minimal scenario after I noticed I coud not start my sample
route below which is supposed to hit a URL when a message gets published to
the seda endpoint:
from("seda://queue.sample")
.to("http://localhost:8088/someAction");
Thanks!
-Nestor
--
View this message in context:
http://camel.465427.n5.nabble.com/JUnit-Test-not-running-when-using-http-endpoint-tp5711142.html
Sent from the Camel - Users mailing list archive at Nabble.com.
--
Willem
----------------------------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang