org.dbunit.dataset
Class Columns.ColumnDiff

java.lang.Object
  extended by org.dbunit.dataset.Columns.ColumnDiff
Enclosing class:
Columns

public static class Columns.ColumnDiff
extends Object

Describes the Columns that are different in two tables.

Since:
2.3.0
Version:
$Revision: 887 $
Author:
gommma

Constructor Summary
Columns.ColumnDiff(ITableMetaData expectedMetaData, ITableMetaData actualMetaData)
          Creates the difference between the two metadata's columns
 
Method Summary
 Column[] getActual()
           
 String getActualAsString()
           
 Column[] getExpected()
           
 String getExpectedAsString()
           
 String getMessage()
           
 boolean hasDifference()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Columns.ColumnDiff

public Columns.ColumnDiff(ITableMetaData expectedMetaData,
                          ITableMetaData actualMetaData)
                   throws DataSetException
Creates the difference between the two metadata's columns

Parameters:
expectedMetaData - The metadata of the expected results table
actualMetaData - The metadata of the actual results table
Throws:
DataSetException
Method Detail

hasDifference

public boolean hasDifference()
Returns:
true if there is a difference in the columns given in the constructor

getExpected

public Column[] getExpected()
Returns:
The columns that exist in the expected result but not in the actual

getActual

public Column[] getActual()
Returns:
The columns that exist in the actual result but not in the expected

getExpectedAsString

public String getExpectedAsString()
Returns:
The value of getExpected() as formatted string
See Also:
getExpected()

getActualAsString

public String getActualAsString()
Returns:
The value of getActual() as formatted string
See Also:
getActual()

getMessage

public String getMessage()
                  throws DataSetException
Returns:
A pretty formatted message that can be used for user information
Throws:
DataSetException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012. All Rights Reserved.