Package org.dbunit.dataset

Examples of org.dbunit.dataset.SortedTable$AbstractRowComparator


   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("CRLDownloadAddressDAO").append(File.separator).append("testDeleteCrlDownloadAddressOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("CRL_DOWNLOAD_ADDRESS");
    SortedTable expectedSortedTable = new SortedTable(expectedTable, new String[] {"address"});
    expectedSortedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("CRL_DOWNLOAD_ADDRESS");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[] {"address"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
View Full Code Here


   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("CRLDownloadAddressDAO").append(File.separator).append("testDeleteMultipleCrlDownloadAddressOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("CRL_DOWNLOAD_ADDRESS");
    SortedTable expectedSortedTable = new SortedTable(expectedTable, new String[] {"address"});
    expectedSortedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("CRL_DOWNLOAD_ADDRESS");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[] {"address"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("RevokedCertificateDAO").append(File.separator).append("testBulkCreateRevokedCertificatesOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("REVOKED_CERTIFICATE");
    SortedTable sortedExpectedTable = new SortedTable(expectedTable, new String[] {"serial_number"});
    sortedExpectedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("REVOKED_CERTIFICATE");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[] {"serial_number"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(sortedExpectedTable, actualSortedTable);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("RevokedCertificateDAO").append(File.separator).append("testUpdateRevocationTimestampOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("REVOKED_CERTIFICATE");
    SortedTable expectedSortedTable = new SortedTable(expectedTable, new String[] {"issuer_id", "serial_number"});
    expectedSortedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("REVOKED_CERTIFICATE");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[] {"issuer_id", "serial_number"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("RevokedCertificateDAO").append(File.separator).append("testUpdateRevocationReasonOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("REVOKED_CERTIFICATE");
    SortedTable expectedSortedTable = new SortedTable(expectedTable, new String[]{"issuer_id", "serial_number"});
    expectedSortedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("REVOKED_CERTIFICATE");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[]{"issuer_id", "serial_number"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("RevokedCertificateDAO").append(File.separator).append("testDeleteSingleCertificateOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("REVOKED_CERTIFICATE");
    SortedTable expectedSortedTable = new SortedTable(expectedTable, new String[] {"issuer_id", "serial_number"});
    expectedSortedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("REVOKED_CERTIFICATE");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[] {"issuer_id", "serial_number"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("RevokedCertificateDAO").append(File.separator).append("testBulkDeleteOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("REVOKED_CERTIFICATE");
    SortedTable expectedSortedTable = new SortedTable(expectedTable, new String[] {"issuer_id", "serial_number"});
    expectedSortedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("REVOKED_CERTIFICATE");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[] {"issuer_id", "serial_number"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("UpdateLogDAO").append(File.separator).append("testBulkCreateOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("UPDATE_LOG");
    SortedTable sortedExpected = new SortedTable(expectedTable, new String[]{"id"});
    sortedExpected.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("UPDATE_LOG");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable sortedActual = new SortedTable(filteredActualTable, new String[]{"id"});
    sortedActual.setUseComparable(true);
   
    Assertion.assertEquals(sortedExpected, sortedActual);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("UpdateLogDAO").append(File.separator).append("testBulkCreateBatchSizeOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("UPDATE_LOG");
    SortedTable sortedExpected = new SortedTable(expectedTable, new String[]{"id"});
    sortedExpected.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("UPDATE_LOG");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable sortedActual = new SortedTable(filteredActualTable, new String[]{"id"});
    sortedActual.setUseComparable(true);
   
    Assertion.assertEquals(sortedExpected, sortedActual);
  }
View Full Code Here

   
    StringBuffer dataSetFile = new StringBuffer();
    dataSetFile.append("config").append(File.separator).append("CRLDownloadAddressDAO").append(File.separator).append("testBulkAddCrlDownloadAddressOK.xml");
    IDataSet expectedDataSet = new FlatXmlDataSetBuilder().build(new FileInputStream(dataSetFile.toString()));
    ITable expectedTable = expectedDataSet.getTable("CRL_DOWNLOAD_ADDRESS");
    SortedTable expectedSortedTable = new SortedTable(expectedTable, new String[] {"address"});
    expectedSortedTable.setUseComparable(true);
   
    IDataSet actualDataSet = this.databaseTester.getConnection().createDataSet();
    ITable actualTable = actualDataSet.getTable("CRL_DOWNLOAD_ADDRESS");
    ITable filteredActualTable = DefaultColumnFilter.includedColumnsTable(actualTable, expectedTable.getTableMetaData().getColumns());
    SortedTable actualSortedTable = new SortedTable(filteredActualTable, new String[] {"address"});
    actualSortedTable.setUseComparable(true);

    Assertion.assertEquals(expectedSortedTable, actualSortedTable);
  }
View Full Code Here

TOP

Related Classes of org.dbunit.dataset.SortedTable$AbstractRowComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.