akka/akka-core

expectNextN in javadsl.TestSink returns a Scala collection.

Open

#27,312 opened on Jul 9, 2019

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Scala (13,277 stars) (3,547 forks)batch import
1 - triagedhelp wantedt:javat:testing

Description

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.

Contributor guide

expectNextN in javadsl.TestSink returns a Scala collection. · akka/akka-core#27312 | Good First Issue