public class ShouldContain extends BasicErrorMessageFactory
String.ComparisonStrategy used.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
directoryShouldContain(File actual,
List<File> directoryContent,
String filterDescription) |
static ErrorMessageFactory |
directoryShouldContain(Path actual,
List<Path> directoryContent,
String filterDescription) |
static ErrorMessageFactory |
shouldContain(Class<?> clazz,
Object actual,
Object expected,
Object notFound,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
shouldContain(Object actual,
Object expected,
Object notFound)
Creates a new
. |
static ErrorMessageFactory |
shouldContain(Object actual,
Object expected,
Object notFound,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldContain(Object actual, Object expected, Object notFound, ComparisonStrategy comparisonStrategy)
ShouldContain.actual - the actual value in the failed assertion.expected - values expected to be in actual.notFound - the values in expected not found in actual.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldContain(Class<?> clazz, Object actual, Object expected, Object notFound, ComparisonStrategy comparisonStrategy)
ShouldContain.clazz - the actual value class in the failed assertion.actual - the actual value in the failed assertion.expected - values expected to be in actual.notFound - the values in expected not found in actual.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldContain(Object actual, Object expected, Object notFound)
ShouldContain.actual - the actual value in the failed assertion.expected - values expected to be in actual.notFound - the values in expected not found in actual.ErrorMessageFactory.public static ErrorMessageFactory directoryShouldContain(File actual, List<File> directoryContent, String filterDescription)
public static ErrorMessageFactory directoryShouldContain(Path actual, List<Path> directoryContent, String filterDescription)
Copyright © 2025. All rights reserved.