java.lang.illegalargumentexception:要合并的规范在waitsystemactive方法中不能为null

zqry0prt  于 2021-06-29  发布在  Java
关注(0)|答案(1)|浏览(289)

我正在尝试添加方法 @Test 使用 dependsOnMethods 在我班上。
如果我只有33岁 @Test 在这个类中,它可以在没有任何错误的情况下运行,但是如果我尝试再添加一个 @Test ,我有 java.lang.IllegalArgumentException: Specification to merge with cannot be null 我查过了,我的 @BeforeClass 使用测试库。
请帮忙,我可以提供截图,如果需要的话。

n7taea2i

n7taea2i1#

我修复了这个错误,当我替换方法上的相同流时:private string getactualenddate(list userapproles,urengoyapprole approle){return userapproles.stream().filter(role->role.get\u ouid().equals(approle.get\u ouid()).findfirst().get().getenddate();}

相关问题