public class ResultMatchers
extends java.lang.Object
assertThat(testResult(HasExpectedException.class), isSuccessful());
| Constructor and Description |
|---|
ResultMatchers()
Deprecated.
will be private soon.
|
| Modifier and Type | Method and Description |
|---|---|
static <any> |
failureCountIs(int count)
Matches if there are
count failures |
static <any> |
hasFailureContaining(java.lang.String string)
Matches if the result has one or more failures, and at least one of them
contains
string |
static <any> |
hasSingleFailureContaining(java.lang.String string)
Matches if the result has exactly one failure, and it contains
string |
static <any> |
hasSingleFailureMatching(<any> matcher)
Matches if the result has exactly one failure matching the given matcher.
|
static <any> |
isSuccessful()
Matches if the tests are all successful
|
@Deprecated public ResultMatchers()
public static <any> isSuccessful()
public static <any> failureCountIs(int count)
count failurespublic static <any> hasSingleFailureContaining(java.lang.String string)
stringpublic static <any> hasSingleFailureMatching(<any> matcher)
public static <any> hasFailureContaining(java.lang.String string)
stringCopyright (c) OSGi Alliance (2014, 2020). All Rights Reserved.