Package liquibase.util
Class Validate
java.lang.Object
liquibase.util.Validate
Similar to assert logic, but will run regardless of JVM settings. Throws
UnexpectedLiquibaseException
if assertions fail.
Based off org.apache.commons.lang.Validate.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static UnexpectedLiquibaseException
static void
Throws exception if test is not true.static void
Throws exception if passed object is null
-
Constructor Details
-
Validate
public Validate()
-
-
Method Details
-
notNull
Throws exception if passed object is null- Throws:
UnexpectedLiquibaseException
-
isTrue
Throws exception if test is not true.- Throws:
UnexpectedLiquibaseException
-
fail
-
failure
-