=cam #3541 Log Camel endpoint activation/deactivation failures as error

This commit is contained in:
Björn Antonsson 2013-08-23 14:29:15 +02:00
parent fcacbbbddf
commit a86bafddfc
2 changed files with 18 additions and 5 deletions

View file

@ -29,7 +29,7 @@ class ConsumerIntegrationTest extends WordSpec with MustMatchers with NonSharedC
implicit def ec: ExecutionContext = system.dispatcher
"Consumer must throw FailedToCreateRouteException, while awaiting activation, if endpoint is invalid" in {
filterEvents(EventFilter.warning(pattern = "failed to activate.*", occurrences = 1)) {
filterEvents(EventFilter[FailedToCreateRouteException](pattern = "failed to activate.*", occurrences = 1)) {
val actorRef = system.actorOf(Props(new TestActor(uri = "some invalid uri")), "invalidActor")
intercept[FailedToCreateRouteException] {
Await.result(camel.activationFutureFor(actorRef), defaultTimeoutDuration)