public abstract class Assert extends org.springframework.util.Assert
Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
static void |
concealed(String text)
Assert that
text is concealed |
static void |
decrypted(List<String> strings)
Deprecated.
use notEncrypted instead
|
static void |
decrypted(String text)
Deprecated.
use notEncrypted instead
|
static void |
encrypted(String text)
Assert that
text is encrypted |
static void |
exists(File file) |
static void |
exists(File file,
String message) |
static void |
exists(String location) |
static void |
exists(String location,
String message) |
static void |
isEven(int i) |
static void |
isEven(int i,
String message) |
static void |
isExistingDir(File dir) |
static void |
isExistingDir(File dir,
String message) |
static void |
isFalse(boolean condition) |
static void |
isFalse(boolean condition,
String message) |
static void |
isOdd(int i) |
static void |
isOdd(int i,
String message) |
static void |
isPort(int port)
Assert that
port is >= 0 and <= 65535 |
static void |
negative(int i)
Assert that
i is less than zero |
static void |
noBlankOptionals(List<com.google.common.base.Optional<String>> optionals) |
static void |
noBlanks(List<String> strings)
Assert that
strings is not null and that none of the elements are blank |
static void |
noBlanks(com.google.common.base.Optional<String> string)
Assert that if the optional string is present it is not blank
|
static void |
noBlanks(com.google.common.base.Optional<String> s1,
com.google.common.base.Optional<String> s2) |
static void |
noBlanks(com.google.common.base.Optional<String> s1,
com.google.common.base.Optional<String> s2,
com.google.common.base.Optional<String> s3) |
static void |
noBlanks(com.google.common.base.Optional<String> s1,
com.google.common.base.Optional<String> s2,
com.google.common.base.Optional<String> s3,
com.google.common.base.Optional<String> s4) |
static void |
noBlanks(String... strings) |
static void |
noBlanksIfPresent(com.google.common.base.Optional<String>... optionals)
Deprecated.
Use noBlankOptionals instead
|
static void |
noBlanksWithMsg(String msg,
String... strings) |
static void |
noNegatives(int... numbers)
Assert that all of the numbers in the array are greater than or equal to zero
|
static void |
noNegatives(long... numbers)
Assert that all of the numbers in the array are greater than or equal to zero
|
static void |
noNulls(Object... objects) |
static void |
noNulls(String msg,
Object... objects)
Deprecated.
|
static void |
noNullStrings(String... strings) |
static void |
noNullsWithMsg(String msg,
Object... objects) |
static void |
noPositives(int... numbers)
Assert that all of the numbers in the array are less than or equal to zero
|
static void |
notBlank(String... strings)
Deprecated.
|
static void |
notBlank(String string) |
static void |
notConcealed(String text)
Assert that
text is not concealed |
static void |
notEncrypted(List<String> strings)
Assert that none of the strings in the list are encrypted
|
static void |
notEncrypted(String text)
Assert that
text is not encrypted |
static void |
notNegative(int i)
Assert that
i is greater than or equal to zero |
static void |
notNegative(long i)
Assert that
i is greater than or equal to zero |
static void |
notNull(Object... objects)
Deprecated.
|
static void |
notPositive(int i)
Assert that
i is less than or equal to zero |
static void |
positive(int i)
Assert that
i is greater than zero |
static void |
positive(long i)
Assert that
i is greater than zero |
static void |
present(com.google.common.base.Optional<?>... optionals) |
static void |
present(com.google.common.base.Optional<?> optional)
Assert that the optional contains a non-null value
|
static void |
present(com.google.common.base.Optional<?> optional,
String msg)
Assert that the optional contains a non-null value
|
static void |
zero(int i)
Assert that
i is zero |
doesNotContain, doesNotContain, hasLength, hasLength, hasText, hasText, isAssignable, isAssignable, isInstanceOf, isInstanceOf, isNull, isNull, isTrue, isTrue, noNullElements, noNullElements, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notEmpty, notNull, notNull, state, state
public Assert()
public static void present(com.google.common.base.Optional<?> optional)
public static void present(com.google.common.base.Optional<?> optional, String msg)
public static void notConcealed(String text)
text
is not concealedpublic static void notEncrypted(String text)
text
is not encrypted@Deprecated public static void decrypted(String text)
text
is not encryptednotEncrypted
@Deprecated public static void decrypted(List<String> strings)
notEncrypted
public static void notEncrypted(List<String> strings)
public static void isPort(int port)
port
is >= 0 and <= 65535public static void noNegatives(int... numbers)
public static void noNegatives(long... numbers)
public static void noPositives(int... numbers)
public static void notNegative(int i)
i
is greater than or equal to zeropublic static void notNegative(long i)
i
is greater than or equal to zeropublic static void notPositive(int i)
i
is less than or equal to zeropublic static void positive(int i)
i
is greater than zeropublic static void positive(long i)
i
is greater than zeropublic static void negative(int i)
i
is less than zeropublic static void zero(int i)
i
is zeropublic static void isExistingDir(File dir)
public static void isExistingDir(File dir, String message)
public static void isOdd(int i)
public static void isEven(int i)
public static void isFalse(boolean condition)
public static void present(com.google.common.base.Optional<?>... optionals)
public static void noBlanks(com.google.common.base.Optional<String> string)
public static void noBlanks(com.google.common.base.Optional<String> s1, com.google.common.base.Optional<String> s2)
public static void noBlanks(com.google.common.base.Optional<String> s1, com.google.common.base.Optional<String> s2, com.google.common.base.Optional<String> s3)
public static void noBlanks(com.google.common.base.Optional<String> s1, com.google.common.base.Optional<String> s2, com.google.common.base.Optional<String> s3, com.google.common.base.Optional<String> s4)
public static void noBlankOptionals(List<com.google.common.base.Optional<String>> optionals)
@Deprecated public static void noBlanksIfPresent(com.google.common.base.Optional<String>... optionals)
noBlankOptionals
public static void noBlanks(List<String> strings)
strings
is not null and that none of the elements are blankpublic static void noNullStrings(String... strings)
public static void noNullsWithMsg(String msg, Object... objects)
public static void noBlanksWithMsg(String msg, String... strings)
@Deprecated public static void notNull(Object... objects)
@Deprecated public static void notBlank(String... strings)
@Deprecated public static void noNulls(String msg, Object... objects)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.