public class ShouldNotHaveAnyElementsOfTypes extends BasicErrorMessageFactory
arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldNotHaveAnyElementsOfTypes(java.lang.Object actual,
java.lang.Class<?>[] unexpectedTypes,
java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> nonMatchingElementsByType) |
Modifier and Type | Method and Description |
---|---|
static ShouldNotHaveAnyElementsOfTypes |
shouldNotHaveAnyElementsOfTypes(java.lang.Object actual,
java.lang.Class<?>[] unexpectedTypes,
java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> nonMatchingElementsByType)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldNotHaveAnyElementsOfTypes(java.lang.Object actual, java.lang.Class<?>[] unexpectedTypes, java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> nonMatchingElementsByType)
public static ShouldNotHaveAnyElementsOfTypes shouldNotHaveAnyElementsOfTypes(java.lang.Object actual, java.lang.Class<?>[] unexpectedTypes, java.util.Map<java.lang.Class<?>,java.util.List<java.lang.Object>> nonMatchingElementsByType)
ShouldNotHaveAnyElementsOfTypes
.actual
- array or IterableunexpectedTypes
- the not expected types of all elementsnonMatchingElementsByType
- the elements with unexpected types.ErrorMessageFactory
.