|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.dbunit.dataset.comparison.RowDifference
public class RowDifference
The difference between 2 data set rows.
| Constructor Summary | |
|---|---|
RowDifference(Row row,
Row actualRow)
Create a row difference. |
|
| Method Summary | |
|---|---|
void |
addColumnDifference(ColumnDifference columnDifference)
Adds a difference for a column |
void |
addMissingColumn(Column column)
Adds a column that was not found in the actual row |
Row |
getActualRow()
|
ColumnDifference |
getColumnDifference(String columnName)
|
List<ColumnDifference> |
getColumnDifferences()
|
List<Column> |
getMissingColumns()
|
Row |
getRow()
|
boolean |
isBetterMatch(RowDifference rowComparison)
|
boolean |
isMatch()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowDifference(Row row,
Row actualRow)
row - The expected row, not nullactualRow - The actual row, null if the row was not found| Method Detail |
|---|
public Row getRow()
public Row getActualRow()
public List<ColumnDifference> getColumnDifferences()
public List<Column> getMissingColumns()
public ColumnDifference getColumnDifference(String columnName)
columnName - The column to find the difference for, not null
public void addColumnDifference(ColumnDifference columnDifference)
columnDifference - The difference, not nullpublic void addMissingColumn(Column column)
column - The missing column, not nullpublic boolean isBetterMatch(RowDifference rowComparison)
rowComparison - The result to compare with, not null
public boolean isMatch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||