【发布时间】:2017-03-24 16:55:12
【问题描述】:
我有
ArrayList<Executable>( () -> assertTrue(true), ... )
现在我正在尝试将其转换为 Stream<Executable> 以使用 assertAll 方法。
public static void assertAll(Stream<Executable> executables)
throws MultipleFailuresError
如何将ArrayList<Executable>(如果没有比ArrayList 更简洁的方法)转换为Stream<Executable>?
【问题讨论】:
标签: java junit java-stream junit5