Package org.dbunit.assertion
Class SimpleAssert
java.lang.Object
org.dbunit.assertion.SimpleAssert
- Direct Known Subclasses:
AbstractDatabaseTester
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertNotNull(Object object) voidassertNotNull(String message, Object object) protected voidassertNotNullNorEmpty(String propertyName, String property) Asserts that propertyName is not a null String and has a length greater than zero.voidassertTrue(boolean condition) voidassertTrue(String message, boolean condition) Evaluate if the given condition istrueor not.void
-
Constructor Details
-
SimpleAssert
-
-
Method Details
-
assertNotNullNorEmpty
Asserts that propertyName is not a null String and has a length greater than zero. -
assertTrue
public void assertTrue(boolean condition) -
assertTrue
Evaluate if the given condition istrueor not.- Parameters:
message- message displayed if assertion is falsecondition- condition to be tested
-
assertNotNull
-
assertNotNull
-
fail
-