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.

贡献者指南