public class TestFrameworkAssertions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TestFrameworkAssertions.AssertionOptions |
static class |
TestFrameworkAssertions.AssertionSupport
A convenience to collect multiple assertion failures.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTAINS |
static java.lang.String |
CONTAINS_MATCH |
static java.lang.String |
EQUAL_TO |
static java.lang.String |
EQUALS |
static java.lang.String |
GREATER_THAN |
static java.lang.String |
HAS_TRUTH_VALUE |
static java.lang.String |
IS_EMPTY |
static java.lang.String |
IS_EQUAL_TO |
static java.lang.String |
IS_NULL |
static java.lang.String |
LESS_THAN |
static java.lang.String |
MATCHES |
static java.lang.String |
NOT_EMPTY |
static java.lang.String |
NOT_EQUAL |
static java.lang.String |
NOT_NULL |
static java.lang.String |
UNKNOWN_CONDITION |
Modifier and Type | Method and Description |
---|---|
static <T> void |
checkAssertions(java.util.Map<java.lang.String,?> flags,
java.util.List<? extends java.util.Map<java.lang.String,?>> assertions,
java.lang.String target,
<any> supplier)
Deprecated.
|
static <T> void |
checkAssertions(java.util.Map<java.lang.String,?> flags,
java.util.Map<java.lang.String,?> assertions,
java.lang.String target,
<any> supplier)
Deprecated.
|
static <T> void |
checkAssertions(TestFrameworkAssertions.AssertionSupport support,
java.util.Map<java.lang.String,?> flags,
java.util.List<? extends java.util.Map<java.lang.String,?>> assertions,
java.lang.String target,
<any> supplier)
Deprecated.
|
static <T> void |
checkAssertions(TestFrameworkAssertions.AssertionSupport support,
java.util.Map<java.lang.String,?> flags,
java.util.Map<java.lang.String,?> assertions,
java.lang.String target,
<any> supplier)
Deprecated.
|
static <T> void |
checkAssertionsEventually(TestFrameworkAssertions.AssertionOptions options) |
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getAbortConditions(Entity entity,
ConfigKey<java.lang.Object> key)
Get abort-condition tolerantly from a configuration key.
|
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getAssertions(Entity entity,
ConfigKey<java.lang.Object> key)
Get assertions tolerantly from a configuration key.
|
public static final java.lang.String IS_NULL
public static final java.lang.String NOT_NULL
public static final java.lang.String IS_EQUAL_TO
public static final java.lang.String EQUAL_TO
public static final java.lang.String EQUALS
public static final java.lang.String NOT_EQUAL
public static final java.lang.String MATCHES
public static final java.lang.String CONTAINS_MATCH
public static final java.lang.String CONTAINS
public static final java.lang.String IS_EMPTY
public static final java.lang.String NOT_EMPTY
public static final java.lang.String HAS_TRUTH_VALUE
public static final java.lang.String GREATER_THAN
public static final java.lang.String LESS_THAN
public static final java.lang.String UNKNOWN_CONDITION
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getAssertions(Entity entity, ConfigKey<java.lang.Object> key)
assertOut: contains: 2 users matches: .*[\d]* days.*or a list of such maps, (which allows you to repeat keys):
assertOut: - contains: 2 users - contains: 2 days
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getAbortConditions(Entity entity, ConfigKey<java.lang.Object> key)
abortCondition: equals: ON_FIREor a list of such maps, (which allows you to repeat keys):
abortCondition: - equals: ON_FIRE - equals: STOPPING - equals: STOPPED - equals: DESTROYED
@Deprecated public static <T> void checkAssertions(java.util.Map<java.lang.String,?> flags, java.util.List<? extends java.util.Map<java.lang.String,?>> assertions, java.lang.String target, <any> supplier)
@Deprecated public static <T> void checkAssertions(TestFrameworkAssertions.AssertionSupport support, java.util.Map<java.lang.String,?> flags, java.util.List<? extends java.util.Map<java.lang.String,?>> assertions, java.lang.String target, <any> supplier)
@Deprecated public static <T> void checkAssertions(TestFrameworkAssertions.AssertionSupport support, java.util.Map<java.lang.String,?> flags, java.util.Map<java.lang.String,?> assertions, java.lang.String target, <any> supplier)
@Deprecated public static <T> void checkAssertions(java.util.Map<java.lang.String,?> flags, java.util.Map<java.lang.String,?> assertions, java.lang.String target, <any> supplier)
public static <T> void checkAssertionsEventually(TestFrameworkAssertions.AssertionOptions options)