assertj-db icon indicating copy to clipboard operation
assertj-db copied to clipboard

`containsAtLeastValues` for column assertions

Open uhensler opened this issue 9 years ago • 1 comments

Today we can assert that a column has exactly some values :

assertThat(table).column("name").containsValues("Hewson",
                                                "Evans",
                                                "Clayton",
                                                "Mullen");

If the table contains more rows / values, the assertion fails.

But it would be nice to have more flexibility and check if the column contains at least the given values.

uhensler avatar Apr 27 '16 11:04 uhensler

It is a good idea. Thanks.

regis1512 avatar Apr 27 '16 17:04 regis1512