public interface Litmus
| Modifier and Type | Field and Description |
|---|---|
static Litmus |
IGNORE
Implementation of
Litmus that returns
a status code but does not throw. |
static Litmus |
THROW
Implementation of
Litmus that throws
an AssertionError on failure. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(boolean condition,
@Nullable String message,
Object... args)
Checks a condition.
|
boolean |
fail(@Nullable String message,
Object... args)
Called when test fails.
|
boolean |
succeed()
Called when test succeeds.
|
static final Litmus THROW
Litmus that throws
an AssertionError on failure.boolean fail(@Nullable String message, Object... args)
message - Messageargs - Argumentsboolean succeed()
boolean check(boolean condition,
@Nullable String message,
Object... args)
If the condition is true, calls succeed();
if the condition is false, calls fail(java.lang.String, java.lang.Object...),
converting info into a string message.
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.