!str #16066 rename connect to via/to
* add missing implicit conversions for ~> * tests for all combinations when using ~>
This commit is contained in:
parent
81bc5c76bc
commit
412003c11e
52 changed files with 308 additions and 240 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue