liquibase.util
Class Validate

java.lang.Object
  extended by 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.


Constructor Summary
Validate()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validate

public Validate()
Method Detail

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.