AbstractStaticdoesthe text to search
the substring to find within the text
the exception message to use if the assertion fails
StatichasAssert that the given String is not empty; that is,
it must not be undefined and not the empty String.
the String to check
the exception message to use if the assertion fails
StatichasAssert that the given String contains valid text content; that is, it must not
be undefined and must contain at least one non-whitespace character.
the String to check
the exception message to use if the assertion fails
StaticisAssert that superType.isAssignableFrom(subType) is true.
the supertype to check against
the subtype to check
Optionalmessage: string | (() => string)
a message which will be prepended to provide further context. If it is empty or ends in ":" or ";" or "," or ".", a full exception message will be appended. If it ends in a space, the name of the offending subtype will be appended. In any other case, a ":" with a space and the name of the offending subtype will be appended.
StaticisAssert that the provided object is an instance of the provided class.
the type to check against
the object to check
Optionalmessage: string | (() => string)
a message which will be prepended to provide further context. If it is empty or ends in ":" or ";" or "," or ".", a full exception message will be appended. If it ends in a space, the name of the offending object's type will be appended. In any other case, a ":" with a space and the name of the offending object's type will be appended.
StaticisAssert that an object is undefined.
the object to check
the exception message to use if the assertion fails
StaticisAssert a boolean expression, throwing an IllegalStateError
if the expression evaluates to false.
a boolean expression
the exception message to use if the assertion fails
StaticnoAssert that an array contains no undefined elements.
Note: Does not complain if the array is empty!
the array to check
the exception message to use if the assertion fails
StaticnoAssert that a collection contains no undefined elements.
Note: Does not complain if the collection is empty!
the collection to check
the exception message to use if the assertion fails
StaticnotAssert that an array contains elements; that is, it must not be
undefined and must contain at least one element.
the array to check
the exception message to use if the assertion fails
StaticnotAssert that a collection contains elements; that is, it must not be
undefined and must contain at least one element.
the collection to check
the exception message to use if the assertion fails
StaticnotAssert that a Map contains entries; that is, it must not be undefined
and must contain at least one entry.
the map to check
the exception message to use if the assertion fails
StaticnotAssert that an object is not undefined.
the object to check
the exception message to use if the assertion fails
StaticstateAssert a boolean expression, throwing an IllegalStateError
if the expression evaluates to false.
a boolean expression
the exception message to use if the assertion fails
Assert that the given text does not contain the given substring.