Class DbUnitTaskIT

java.lang.Object
org.dbunit.ant.DbUnitTaskIT

public class DbUnitTaskIT extends Object
Ant-based test class for the Dbunit ant task definition.
Since:
Jun 10, 2002
Version:
$Revision$ $Date$
Author:
Timothy Ruppert, Ben Cox, Last changed by: $Author$
See Also:
  • invalid reference
    org.dbunit.ant.AntTest
  • Field Details

  • Constructor Details

    • DbUnitTaskIT

      public DbUnitTaskIT()
  • Method Details

    • initializeDbEnvironment

      @BeforeAll public static void initializeDbEnvironment() throws Exception
      Throws:
      Exception
    • setUp

      @BeforeEach public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      @AfterEach public void tearDown() throws Exception
      Throws:
      Exception
    • testNoDriver

      @Test public void testNoDriver()
    • testNoDbUrl

      @Test public void testNoDbUrl()
    • testNoUserid

      @Test public void testNoUserid()
    • testNoPassword

      @Test public void testNoPassword()
    • testInvalidDatabaseInformation

      @Test public void testInvalidDatabaseInformation()
    • testInvalidOperationType

      @Test public void testInvalidOperationType()
    • testSetFlatFalse

      @Test public void testSetFlatFalse()
    • testResolveOperationTypes

      @Test public void testResolveOperationTypes()
    • testInvalidCompositeOperationSrc

      @Test public void testInvalidCompositeOperationSrc()
    • testInvalidCompositeOperationFlat

      @Test public void testInvalidCompositeOperationFlat()
    • testExportFull

      @Test public void testExportFull()
    • testExportPartial

      @Test public void testExportPartial()
    • testExportWithForwardOnlyResultSetTable

      @Test public void testExportWithForwardOnlyResultSetTable() throws SQLException, DatabaseUnitException
      Throws:
      SQLException
      DatabaseUnitException
    • testExportFlat

      @Test public void testExportFlat()
    • testExportFlatWithDocytpe

      @Test public void testExportFlatWithDocytpe()
    • testExportFlatWithEncoding

      @Test public void testExportFlatWithEncoding()
    • testExportXml

      @Test public void testExportXml()
    • testExportCsv

      @Test public void testExportCsv()
    • testExportDtd

      @Test public void testExportDtd()
    • testInvalidExportFormat

      @Test public void testInvalidExportFormat()
    • testExportXmlOrdered

      @Test public void testExportXmlOrdered() throws Exception
      Throws:
      Exception
    • testExportQuery

      @Test public void testExportQuery()
    • testExportWithQuerySet

      @Test public void testExportWithQuerySet()
    • testWithBadQuerySet

      @Disabled("Ant now ignores id errors and refid is always evaluated first") @Test public void testWithBadQuerySet()
    • testWithReferenceQuerySet

      @Test public void testWithReferenceQuerySet()
    • testExportQueryMixed

      @Test public void testExportQueryMixed()
    • testExportAndCompareFormatMismatch

      @Test public void testExportAndCompareFormatMismatch()
      Tests the exception that is thrown when the compare fails because the source format was different from the previous "export" task's write format.
    • testDataTypeFactory

      @Test public void testDataTypeFactory() throws Exception
      Throws:
      Exception
    • testEscapePattern

      @Test public void testEscapePattern() throws Exception
      Throws:
      Exception
    • testDataTypeFactoryViaGenericConfig

      @Test public void testDataTypeFactoryViaGenericConfig() throws Exception
      Throws:
      Exception
    • testClasspath

      @Test public void testClasspath() throws Exception
      Throws:
      Exception
    • testDriverNotInClasspath

      @Test public void testDriverNotInClasspath() throws Exception
      Throws:
      Exception
    • testReplaceOperation

      @Test public void testReplaceOperation() throws Exception
      Throws:
      Exception
    • testOrderedOperation

      @Test public void testOrderedOperation() throws Exception
      Throws:
      Exception
    • testReplaceOrderedOperation

      @Test public void testReplaceOrderedOperation() throws Exception
      Throws:
      Exception
    • assertOperationType

      protected void assertOperationType(String failMessage, String targetName, DatabaseOperation expected)
    • getQueryCount

      protected int getQueryCount(List tables)
    • getTableCount

      protected int getTableCount(List tables)
    • getQuerySetCount

      protected int getQuerySetCount(List tables)
    • getFirstStepFromTarget

      protected DbUnitTaskStep getFirstStepFromTarget(String targetName)
    • getStepFromTarget

      protected DbUnitTaskStep getStepFromTarget(String targetName, int index)
    • expectSpecificBuildException

      public void expectSpecificBuildException(String target, String cause, String msg)
      Runs a target, wait for a build exception.
      Parameters:
      target - target to run
      cause - information string to reader of report
      msg - the message value of the build exception we are waiting for set to null for any build exception to be valid
    • expectBuildException

      public void expectBuildException(String target, String cause)