public class Validate extends Object
UnexpectedLiquibaseException if assertions fail.
Based off org.apache.commons.lang.Validate.| Constructor and Description |
|---|
Validate() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fail(String failMessage) |
static UnexpectedLiquibaseException |
failure(String failMessage) |
static void |
isTrue(boolean test,
String failMessage)
Throws exception if test is not true.
|
static void |
notNull(Object object,
String failMessage)
Throws exception if passed object is null
|
public static void notNull(Object object, String failMessage) throws UnexpectedLiquibaseException
UnexpectedLiquibaseExceptionpublic static void isTrue(boolean test,
String failMessage)
throws UnexpectedLiquibaseException
UnexpectedLiquibaseExceptionpublic static void fail(String failMessage)
public static UnexpectedLiquibaseException failure(String failMessage)
Copyright © 2018 Liquibase.org. All rights reserved.