Class ShouldNotHaveAnyElementsOfTypes

    • Constructor Detail

      • ShouldNotHaveAnyElementsOfTypes

        private ShouldNotHaveAnyElementsOfTypes​(Object actual,
                                                Class<?>[] unexpectedTypes,
                                                Map<Class<?>,​List<Object>> nonMatchingElementsByType)
    • Method Detail

      • shouldNotHaveAnyElementsOfTypes

        public static ShouldNotHaveAnyElementsOfTypes shouldNotHaveAnyElementsOfTypes​(Object actual,
                                                                                      Class<?>[] unexpectedTypes,
                                                                                      Map<Class<?>,​List<Object>> nonMatchingElementsByType)
        Parameters:
        actual - array or Iterable
        unexpectedTypes - the not expected types of all elements
        nonMatchingElementsByType - the elements with unexpected types.
        Returns:
        the created ErrorMessageFactory.