Class SimpleAssert

java.lang.Object
org.dbunit.assertion.SimpleAssert
Direct Known Subclasses:
AbstractDatabaseTester

public class SimpleAssert extends Object
Dbunit's own small assertion utility, independent from the testing framework that is used.
Since:
2.4.0
Version:
$Revision$ $Date$
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
  • Constructor Details

  • Method Details

    • assertNotNullNorEmpty

      protected void assertNotNullNorEmpty(String propertyName, String property)
      Asserts that propertyName is not a null String and has a length greater than zero.
    • assertTrue

      public void assertTrue(boolean condition)
    • assertTrue

      public void assertTrue(String message, boolean condition)
      Evaluate if the given condition is true or not.
      Parameters:
      message - message displayed if assertion is false
      condition - condition to be tested
    • assertNotNull

      public void assertNotNull(Object object)
    • assertNotNull

      public void assertNotNull(String message, Object object)
    • fail

      public void fail(String message)