Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix failing test

  • Loading branch information...
commit c935b232fe65eca3e132726bdd64bf4f031f88ad 1 parent c4ec782
@jeffbrown jeffbrown authored
View
4 test/unit/org/grails/rabbitmq/AutoQueueMessageListenerContainerTests.groovy
@@ -148,6 +148,8 @@ class AutoQueueMessageListenerContainerTests extends GrailsUnitTestCase {
mockAdminBean.declareQueue = {-> return new Queue(tempQueueName) }
mockAdminBean.declareBinding = { binding ->
+ assert binding.exchange == exchangeName
+ assert binding.destination == tempQueueName
declareBindingCalled = true
}
@@ -156,6 +158,6 @@ class AutoQueueMessageListenerContainerTests extends GrailsUnitTestCase {
testContainer.exchangeBeanName = exchangeName
testContainer.doStart()
- assertFalse "declareBinding() called", declareBindingCalled
+ assertTrue "declareBinding() was not called", declareBindingCalled
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.