我可以以某種方式使用AssertJ斷言一個List只有一個(子)類的例項嗎? ... long countOfClassB = list.stream().filter(t -> t instanceof B).count(); ...
確定! 回上一頁