=str #19781 Use overriden InputBuffer attribute

* Sink.{queue, actorRefWithAck} and StreamConverters.{asInputStream,
  asOutputStream} now use overriden/inherited `InputBuffer` attribute
* They now use their default attributes as initial attributes.
This commit is contained in:
Bojan Petrovic 2016-02-15 13:38:37 +01:00
parent a83f08d4ab
commit b4f507cdd6
11 changed files with 69 additions and 17 deletions

View file

@ -5,6 +5,7 @@ package akka.stream.scaladsl
import akka.actor.Status
import akka.pattern.pipe
import akka.stream.Attributes.inputBuffer
import akka.stream.{ OverflowStrategy, ActorMaterializer }
import akka.stream.testkit.Utils._
import akka.stream.testkit.{ AkkaSpec, _ }
@ -129,5 +130,10 @@ class QueueSinkSpec extends AkkaSpec with ScalaFutures {
}
"fail to materialize with zero sized input buffer" in {
an[IllegalArgumentException] shouldBe thrownBy {
Source.single(()).runWith(Sink.queue().withAttributes(inputBuffer(0, 0)))
}
}
}
}