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,
String message,
Object... args)
Checks a condition.
|
boolean |
fail(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(String message, Object... args)
message - Messageargs - Argumentsboolean succeed()
boolean check(boolean condition,
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–2018 The Apache Software Foundation. All rights reserved.