Class Precondition
- java.lang.Object
-
- org.antublue.test.engine.internal.util.Precondition
-
public final class Precondition extends Object
Class to check preconditions
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnotBlank(String string)Method to validate a String is not null or blankstatic voidnotBlank(String string, String message)Method to validate a String is not null or blankstatic voidnotNull(Object object)Method to validate an Object it not nullstatic voidnotNull(Object object, String message)Method to validate an Object it not null
-
-
-
Method Detail
-
notNull
public static void notNull(Object object)
Method to validate an Object it not null- Parameters:
object- object
-
notNull
public static void notNull(Object object, String message)
Method to validate an Object it not null- Parameters:
object- objectmessage- message
-
notBlank
public static void notBlank(String string)
Method to validate a String is not null or blank- Parameters:
string- string
-
-