Interface DoesNotPermitIncompatibleTypes

All Superinterfaces:
CollectionContractConfig

public interface DoesNotPermitIncompatibleTypes extends 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 Type
    Method
    Description
    default 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 interface CollectionContractConfig
      Returns:
      false