|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unitils.dbunit.dataset.comparison.TableDifference
public class TableDifference
The differences between 2 data set tables.
Constructor Summary | |
---|---|
TableDifference(Table table,
Table actualTable)
Creates a table difference. |
Method Summary | |
---|---|
void |
addMissingRow(Row missingRow)
Adds a rows for which no other row was found in the actual table. |
Table |
getActualTable()
|
RowDifference |
getBestRowDifference(Row row)
|
List<RowDifference> |
getBestRowDifferences()
|
List<Row> |
getMissingRows()
|
Table |
getTable()
|
boolean |
isMatch()
|
void |
setIfBestRowDifference(RowDifference rowDifference)
Sets the given difference as best row difference if it is better than the current best row difference. |
void |
setMatchingRow(Row row,
Row actualRow)
Indicates a match for the given row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableDifference(Table table, Table actualTable)
table
- The expected table, not nullactualTable
- The actual table, not nullMethod Detail |
---|
public Table getTable()
public Table getActualTable()
public List<Row> getMissingRows()
public void addMissingRow(Row missingRow)
missingRow
- The missing row, not nullpublic List<RowDifference> getBestRowDifferences()
public RowDifference getBestRowDifference(Row row)
row
- The row to get the difference for, not null
public void setMatchingRow(Row row, Row actualRow)
row
- The row, not nullactualRow
- The matching actual row, not nullpublic void setIfBestRowDifference(RowDifference rowDifference)
rowDifference
- The difference, null for a matchpublic boolean isMatch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |