org.dbunit.assertion
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: 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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleAssert
public SimpleAssert(FailureHandler failureHandler)
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 falsecondition
- 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.