Package | Description |
---|---|
org.assertj.swing.data |
Data structures.
|
org.assertj.swing.driver |
Component -specific test drivers. |
org.assertj.swing.fixture |
Public API, source of AssertJ-Swing's power and flexibility.
|
Modifier and Type | Method and Description |
---|---|
TableCell |
TableCell.TableCellBuilder.column(int column)
Creates a new table cell using the row index specified in
row(int) and the column index
specified as the argument in this method. |
TableCell |
TableCellInSelectedRow.findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable that belongs to the first selected row and has a matching column index. |
TableCell |
TableCellByColumnId.findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable that has a matching row index and column id. |
TableCell |
TableCellInRowByValue.findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable that:
is located in the first row whose values match the given ones
has a matching row index
|
TableCell |
TableCellFinder.findCell(JTable table,
JTableCellReader cellReader)
Finds a cell in the given
JTable based on some search criteria specified by this finder. |
Modifier and Type | Method and Description |
---|---|
TableCell |
JTableDriver.cell(JTable table,
Pattern pattern)
Returns a cell from the given
JTable whose value matches the given regular expression pattern. |
TableCell |
JTableDriver.cell(JTable table,
String value)
Returns a cell from the given
JTable whose value matches the given one. |
TableCell |
JTableDriver.cell(JTable table,
TableCellFinder cellFinder)
Returns a cell from the given
JTable using the given cell finder. |
Modifier and Type | Method and Description |
---|---|
Color |
JTableDriver.background(JTable table,
TableCell cell)
Returns the background colour of the given table cell.
|
void |
JTableDriver.cancelCellEditing(JTable table,
TableCell cell)
Cancels editing the given cell of the
JTable , using this driver's JTableCellWriter . |
Rectangle |
JTableLocation.cellBounds(JTable table,
TableCell cell)
Returns the bounds of the given cell.
|
Component |
JTableDriver.cellEditor(JTable table,
TableCell cell)
Returns the editor in the given cell of the
JTable , using this driver's JTableCellWriter . |
void |
JTableDriver.checkCellIndicesInBounds(JTable table,
TableCell cell)
Validates that the given table cell is non
null and its indices are not out of bounds. |
static void |
JTableCellPreconditions.checkCellIndicesInBounds(JTable table,
TableCell cell)
Verifies that the given table cell is non
null and its indices are not out of bounds. |
void |
JTableDriver.click(JTable table,
TableCell cell,
MouseButton mouseButton,
int times)
Clicks the given cell, using the specified mouse button, the given number of times.
|
void |
JTableDriver.drag(JTable table,
TableCell cell)
Starts a drag operation at the location of the given table cell.
|
void |
JTableDriver.drop(JTable table,
TableCell cell)
Starts a drop operation at the location of the given table cell.
|
void |
JTableDriver.enterValueInCell(JTable table,
TableCell cell,
String value)
Enters the given value in the given cell of the
JTable , using this driver's JTableCellWriter . |
Font |
JTableDriver.font(JTable table,
TableCell cell)
Returns the font of the given table cell.
|
Color |
JTableDriver.foreground(JTable table,
TableCell cell)
Returns the foreground colour of the given table cell.
|
Point |
JTableDriver.pointAt(JTable table,
TableCell cell)
Converts the given table cell into a coordinate pair.
|
void |
JTableDriver.requireCellValue(JTable table,
TableCell cell,
Pattern pattern)
Asserts that the value of the given cell matches the given regular expression pattern.
|
void |
JTableDriver.requireCellValue(JTable table,
TableCell cell,
String value)
Asserts that the value of the given cell matches the given value.
|
void |
JTableDriver.requireEditable(JTable table,
TableCell cell)
Asserts that the given table cell is editable.
|
void |
JTableDriver.requireNotEditable(JTable table,
TableCell cell)
Asserts that the given table cell is not editable.
|
void |
JTableDriver.selectCell(JTable table,
TableCell cell)
Selects the given cell, if it is not selected already.
|
void |
JTableDriver.selectCells(JTable table,
TableCell[] cells)
Selects the given cells of the
JTable . |
JPopupMenu |
JTableDriver.showPopupMenuAt(JTable table,
TableCell cell)
Shows a pop-up menu at the given table cell.
|
void |
JTableDriver.startCellEditing(JTable table,
TableCell cell)
Starts editing the given cell of the
JTable , using this driver's JTableCellWriter . |
void |
JTableDriver.stopCellEditing(JTable table,
TableCell cell)
Stops editing the given cell of the
JTable , using this driver's JTableCellWriter . |
void |
JTableDriver.unselectCell(JTable table,
TableCell cell)
Unselects the given cell, if it is selected.
|
void |
JTableDriver.unselectCells(JTable table,
TableCell[] cells)
Unselects the given cells of the
JTable . |
String |
JTableDriver.value(JTable table,
TableCell cell)
Returns the
String representation of the value at the given cell, using this driver's
JTableCellReader . |
Modifier and Type | Method and Description |
---|---|
ColorFixture |
JTableFixture.backgroundAt(TableCell cell)
Returns a fixture that verifies the background color of the given table cell.
|
JTableCellFixture |
JTableFixture.cell(TableCell cell)
Returns a
JTableCellFixture wrapping the table cell specified by the given row and column. |
JTableFixture |
JTableFixture.click(TableCell cell,
MouseButton button)
Simulates a user clicking a cell in this fixture's
JTable once, using the specified mouse button. |
JTableFixture |
JTableFixture.click(TableCell cell,
MouseClickInfo mouseClickInfo)
Simulates a user clicking a cell in this fixture's
JTable , using the specified mouse button the given
number of times. |
JTableFixture |
JTableFixture.drag(TableCell cell)
Simulates a user dragging an item from this fixture's
JTable . |
JTableFixture |
JTableFixture.drop(TableCell cell)
Simulates a user dropping an item to this fixture's
JTable . |
JTableFixture |
JTableFixture.enterValue(TableCell cell,
String value)
Enters the given value in the given cell of this fixture's
JTable , using this fixture's
JTableCellWriter . |
FontFixture |
JTableFixture.fontAt(TableCell cell)
Returns a fixture that verifies the font of the given table cell.
|
ColorFixture |
JTableFixture.foregroundAt(TableCell cell)
Returns a fixture that verifies the foreground color of the given table cell.
|
Point |
JTableFixture.pointAt(TableCell cell)
Converts the given cell into a coordinate pair.
|
JTableFixture |
JTableFixture.requireCellValue(TableCell cell,
Pattern pattern)
Asserts that the value of the given cell matches the given regular expression pattern.
|
JTableFixture |
JTableFixture.requireCellValue(TableCell cell,
String value)
Asserts that the value of the given cell matches the given value.
|
JTableFixture |
JTableFixture.requireEditable(TableCell cell)
Asserts that the given cell in this fixture's
JTable is editable. |
JTableFixture |
JTableFixture.requireNotEditable(TableCell cell)
Asserts that the given cell in this fixture's
JTable is not editable. |
JTableFixture |
JTableFixture.selectCell(TableCell cell)
Simulates a user selecting the given cell (row and column) of this fixture's
JTable . |
JTableFixture |
JTableFixture.selectCells(TableCell... cells)
Simulates a user selecting the given cells of this fixture's
JTable . |
JPopupMenuFixture |
JTableFixture.showPopupMenuAt(TableCell cell)
Shows a pop-up menu at the given cell.
|
JTableFixture |
JTableFixture.unselectCell(TableCell cell)
Simulates a user unselecting the given cell (row and column) of this fixture's
JTable . |
JTableFixture |
JTableFixture.unselectCells(TableCell... cells)
Simulates a user unselecting the given cells of this fixture's
JTable . |
String |
JTableFixture.valueAt(TableCell cell)
Returns the
String representation of the value of a cell in this fixture's JTable , using this
fixture's JTableCellReader . |
Constructor and Description |
---|
JTableCellFixture(JTableFixture table,
TableCell cell)
Creates a new
JTableCellFixture . |
Copyright © 2014–2019 AssertJ. All rights reserved.