!str #16066 rename connect to via/to

* add missing implicit conversions for ~>
* tests for all combinations when using ~>
This commit is contained in:
Martynas Mickevičius 2014-10-31 10:43:42 +02:00
parent 81bc5c76bc
commit 412003c11e
52 changed files with 308 additions and 240 deletions

View file

@ -17,26 +17,26 @@ class FlowAppendSpec extends AkkaSpec with River {
"Flow" should {
"append Flow" in riverOf[String] { subscriber
val flow = Flow[Int].connect(otherFlow)
Source(elements).connect(flow).connect(Sink(subscriber)).run()
val flow = Flow[Int].via(otherFlow)
Source(elements).via(flow).to(Sink(subscriber)).run()
}
"append Sink" in riverOf[String] { subscriber
val sink = Flow[Int].connect(otherFlow.connect(Sink(subscriber)))
Source(elements).connect(sink).run()
val sink = Flow[Int].to(otherFlow.to(Sink(subscriber)))
Source(elements).to(sink).run()
}
}
"Source" should {
"append Flow" in riverOf[String] { subscriber
Source(elements)
.connect(otherFlow)
.connect(Sink(subscriber)).run()
.via(otherFlow)
.to(Sink(subscriber)).run()
}
"append Sink" in riverOf[String] { subscriber
Source(elements)
.connect(otherFlow.connect(Sink(subscriber)))
.to(otherFlow.to(Sink(subscriber)))
.run()
}
}