org.dbunit.assertion
Class SimpleAssert

java.lang.Object
  extended by 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: 879 $ $Date: 2008-11-16 14:09:08 +0100 (Sun, 16 Nov 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

Constructor Summary
SimpleAssert(FailureHandler failureHandler)
           
 
Method Summary
 void assertNotNull(Object object)
           
 void assertNotNull(String message, Object object)
           
protected  void assertNotNullNorEmpty(String propertyName, String property)
          Asserts that propertyName is not a null String and has a length greater than zero.
 void assertTrue(boolean condition)
           
 void assertTrue(String message, boolean condition)
          Evaluate if the given condition is true or not.
 void fail(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAssert

public SimpleAssert(FailureHandler failureHandler)
Method Detail

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)


Copyright © 2002-2012. All Rights Reserved.