Created
June 29, 2017 06:17
-
-
Save anonymous/fd1016bb9c5d5cd9e121f1c6d485310d to your computer and use it in GitHub Desktop.
the description for this gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExchangeConsumerReactiveSubscriberSpec | |
extends SubscriberBlackboxVerification[OutboundMessage]( | |
new TestEnvironment(300) | |
) with TestNGSuiteLike { | |
/* RabbitMQ setup and cleanup code here */ | |
implicit val scheduler = Scheduler.io() | |
override def createSubscriber() = | |
new ExchangeConsumer(connection, ExchangeName) | |
.createSubscriber(Callback.empty, scheduler) | |
._1.toReactive | |
override def createElement(element: Int) = | |
OutboundMessage(routingKey = "foo", body = BigInt(element).toByteArray) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment