Interface DoesNotPermitIncompatibleTypes
- All Superinterfaces:
CollectionContractConfig
A decorator interface that indicates that the collection class being tested does not permit incompatible types.
- Since:
- 1.0
- Author:
- evanbergstrom
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Determines if methods of this collection throw an exception when called with an object whose type is incompatible with the element type.Methods inherited from interface org.soliscode.test.contract.CollectionContractConfig
permitDuplicates, permitNulls
-
Method Details
-
permitIncompatibleTypes
default boolean permitIncompatibleTypes()Determines if methods of this collection throw an exception when called with an object whose type is incompatible with the element type.- Specified by:
permitIncompatibleTypes
in interfaceCollectionContractConfig
- Returns:
false
-