/** * Returns a fixture that verifies the background color of the given table cell. * * @param cell the given table cell. * @return a fixture that verifies the background color of the given table cell. * @throws NullPointerException if the cell is {@code null}. * @throws IndexOutOfBoundsException if any of the indices (row and column) is out of bounds. */ @Nonnull public ColorFixture backgroundAt(@Nonnull TableCell cell) { Color background = driver().background(target(), cell); return new ColorFixture(checkNotNull(background), cellProperty(cell, BACKGROUND_PROPERTY)); }
/** * Returns a fixture that verifies the foreground color of the given table cell. * * @param cell the given table cell. * @return a fixture that verifies the foreground color of the given table cell. * @throws NullPointerException if the cell is {@code null}. * @throws IndexOutOfBoundsException if any of the indices (row and column) is out of bounds. */ @Nonnull public ColorFixture foregroundAt(@Nonnull TableCell cell) { Color foreground = driver().foreground(target(), cell); return new ColorFixture(checkNotNull(foreground), cellProperty(cell, FOREGROUND_PROPERTY)); }
/** * Returns a fixture that verifies the font of the given table cell. * * @param cell the given table cell. * @return a fixture that verifies the font of the given table cell. * @throws NullPointerException if the cell is {@code null}. * @throws IndexOutOfBoundsException if any of the indices (row and column) is out of bounds. */ public FontFixture fontAt(@Nonnull TableCell cell) { Font font = driver().font(target(), cell); return new FontFixture(checkNotNull(font), cellProperty(cell, FONT_PROPERTY)); }