Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dbunit
Class Assertion  view Assertion download Assertion.java

java.lang.Object
  extended byorg.dbunit.Assertion

public class Assertion
extends java.lang.Object

Since:
Mar 22, 2002
Version:
$Revision: 1.13 $

Nested Class Summary
private static class Assertion.ColumnComparator
           
 
Field Summary
private static Assertion.ColumnComparator COLUMN_COMPARATOR
           
 
Constructor Summary
private Assertion()
           
 
Method Summary
static void assertEquals(org.dbunit.dataset.IDataSet expectedDataSet, org.dbunit.dataset.IDataSet actualDataSet)
          Asserts that the two specified dataset are equals.
static void assertEquals(org.dbunit.dataset.ITable expectedTable, org.dbunit.dataset.ITable actualTable)
          Asserts that the two specified tables are equals.
private static java.lang.String getColumnNamesAsString(org.dbunit.dataset.Column[] columns)
           
(package private) static org.dbunit.dataset.datatype.DataType getComparisonDataType(java.lang.String tableName, org.dbunit.dataset.Column expectedColumn, org.dbunit.dataset.Column actualColumn)
           
private static org.dbunit.dataset.Column[] getSortedColumns(org.dbunit.dataset.ITableMetaData metaData)
           
private static java.lang.String[] getSortedUpperTableNames(org.dbunit.dataset.IDataSet dataSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_COMPARATOR

private static final Assertion.ColumnComparator COLUMN_COMPARATOR
Constructor Detail

Assertion

private Assertion()
Method Detail

assertEquals

public static void assertEquals(org.dbunit.dataset.IDataSet expectedDataSet,
                                org.dbunit.dataset.IDataSet actualDataSet)
                         throws DatabaseUnitException
Asserts that the two specified dataset are equals. This method ignore the tables order.


assertEquals

public static void assertEquals(org.dbunit.dataset.ITable expectedTable,
                                org.dbunit.dataset.ITable actualTable)
                         throws DatabaseUnitException
Asserts that the two specified tables are equals. This method ignore the table names, the columns order, the columns data type and which columns are composing the primary keys.


getComparisonDataType

static org.dbunit.dataset.datatype.DataType getComparisonDataType(java.lang.String tableName,
                                                                  org.dbunit.dataset.Column expectedColumn,
                                                                  org.dbunit.dataset.Column actualColumn)

getSortedColumns

private static org.dbunit.dataset.Column[] getSortedColumns(org.dbunit.dataset.ITableMetaData metaData)
                                                     throws org.dbunit.dataset.DataSetException

getColumnNamesAsString

private static java.lang.String getColumnNamesAsString(org.dbunit.dataset.Column[] columns)

getSortedUpperTableNames

private static java.lang.String[] getSortedUpperTableNames(org.dbunit.dataset.IDataSet dataSet)
                                                    throws org.dbunit.dataset.DataSetException