liquibase.util
Class Validate
java.lang.Object
liquibase.util.Validate
public class Validate
- extends Object
Similar to assert logic, but will run regardless of JVM settings. Throws UnexpectedLiquibaseException
if assertions fail.
Based off org.apache.commons.lang.Validate.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Validate
public Validate()
notNull
public static void notNull(Object object,
String failMessage)
throws UnexpectedLiquibaseException
- Throws exception if passed object is null
- Throws:
UnexpectedLiquibaseException
isTrue
public static void isTrue(boolean test,
String failMessage)
throws UnexpectedLiquibaseException
- Throws exception if test is not true.
- Throws:
UnexpectedLiquibaseException
fail
public static void fail(String failMessage)
failure
public static UnexpectedLiquibaseException failure(String failMessage)
Copyright © 2016 Liquibase.org. All rights reserved.