akka/akka-core

Missing Java API for muting events

开放

#26,434 创建于 2019年2月22日

 (0 条评论) (0 个反应) (0 位负责人)Scala (3,547 个派生)batch import
1 - triagedhelp wantedt:javat:testing

仓库指标

星标
 (13,277 个星标)
PR 合并指标
 (平均合并 8天 19小时) (30 天内合并 10 个 PR)

描述

Using the Scala API from Java, one can do:

EventFilter defaultDebug = EventFilter.debug(null, null, "", null, Integer.MAX_VALUE);
system.eventStream().publish(new TestEvent.Mute(Arrays.asList(defaultDebug)));

But with the Java testkit EventFilter there is no way to do that since creating a Scala API EventFilter is hidden inside of it.

There should be a way to do the same from Java using akka.testkit.javadsl.EventFilter

贡献者指南