/** * Asserts that the value of this fixture's table cell matches the given value. * * @param value the expected value of this fixture's table cell. It can be a regular expression. * @return this fixture. * @throws AssertionError if the value of this fixture's table cell does not match the expected one. */ @Nonnull public JTableCellFixture requireValue(@Nullable String value) { table.requireCellValue(cell(), value); return this; }
/** * Asserts that the value of this fixture's table cell matches the given regular expression pattern. * * @param pattern the regular expression pattern to match. * @return this fixture. * @throws NullPointerException if the given regular expression pattern is {@code null}. * @throws AssertionError if the value of this fixture's table cell does not match the expected the given regular * expression pattern. */ @Nonnull public JTableCellFixture requireValue(@Nonnull Pattern pattern) { table.requireCellValue(cell(), pattern); return this; }