How to assert that a list has at least n items which are greater than x (with hamcrest in junit)

后端 未结 2 1288
情歌与酒
情歌与酒 2020-12-06 21:33

I could with following code check if a list has a item, which greater than 30.

//Using Hamcrest
List ints= Arrays.asList(22,33,44,55);
assertT         


        
2条回答
提交回复
热议问题