Class 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));