akka/akka-core

expectNextN in javadsl.TestSink returns a Scala collection.

Aberta

#27.312 aberto em 9 de jul. de 2019

 (2 comentários) (0 reação) (0 responsável)Scala (3.547 forks)batch import
1 - triagedhelp wantedt:javat:testing

Métricas do repositório

Stars
 (13.277 estrelas)
Métricas de merge de PR
 (Mesclagem média 8d 19h) (10 fundiu PRs em 30d)

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.

Guia do colaborador