akka/akka-core

expectNextN in javadsl.TestSink returns a Scala collection.

開放

#27,312 建立於 2019年7月9日

 (2 則留言) (0 個反應) (0 位負責人)Scala (3,547 個分叉)batch import
1 - triagedhelp wantedt:javat:testing

倉庫指標

星標
 (13,277 顆星)
PR 合併指標
 (平均合併 8天 19小時) (30 天內合併 10 個 PR)

描述

I have a java project that is using:

import akka.stream.testkit.javadsl.TestSink;

I then do something like:

sink.runWith(TestSink.probe(system), materializer)
  .request(100)
  .expectNextN(100)

I would have expected to receive a Java collection of elements. However I don't. I receive a Scala Seq. Given this is the javadsl version of the TestSink, I think it should probably return a Java collection, rather than a Scala collection.

貢獻者指南