public class IsTrue extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
throwDefaultException() |
protected void |
throwDefaultException(String... args) |
protected void |
throwDefaultException(String message) |
void |
verify(Object... objects)
Assert a boolean expression, throwing
IllegalArgumentException
if the test result is false . |
void |
verify(RuntimeException e,
Object... objects) |
void |
verifyArray(Object[] object)
Verify if a the array assure the assertion.
|
void |
verifyArray(RuntimeException e,
Object[] object) |
public void verify(Object... objects)
IllegalArgumentException
if the test result is false
.
Assert.isTrue(i > 0);
verify
in interface Assertable
objects
- a boolean expressionIllegalArgumentException
- if expression is false
public void verify(RuntimeException e, Object... objects)
e
- The exception must be throw when arguments the assertion fails.objects
- Arguments to verify against the assertion
throws Throw a specific RuntimeException
exception when the the assertion fails.public void verifyArray(Object[] object)
Assertable
object
- the array to check the assertion.
throws Throw a RuntimeException
exception or subclass when the the assertion fails.public void verifyArray(RuntimeException e, Object[] object)
e
- The exception must be throw when arguments the assertion fails.object
- the array to check the assertion.
throws Throw a specific RuntimeException
exception when the the assertion fails.protected void throwDefaultException()
protected void throwDefaultException(String... args)
protected void throwDefaultException(String message)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.