Class DataTableHasTheSameRowsAs

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<DataTable>
io.cucumber.datatable.matchers.DataTableHasTheSameRowsAs
All Implemented Interfaces:
Matcher<DataTable>, SelfDescribing

@API(status=STABLE) public final class DataTableHasTheSameRowsAs extends TypeSafeDiagnosingMatcher<DataTable>
Matches two data tables by their rows. By default the matcher does not take row order into account. This can be fluently enabled.
 assertThat(identical, hasTheSameRowsAs(table).inOrder());
 assertThat(shuffled, hasTheSameRowsAs(table));