Class ShouldNotHaveAnyElementsOfTypes

    • Constructor Detail

      • ShouldNotHaveAnyElementsOfTypes

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

      • shouldNotHaveAnyElementsOfTypes

        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)
        Parameters:
        actual - array or Iterable
        unexpectedTypes - the not expected types of all elements
        nonMatchingElementsByType - the elements with unexpected types.
        Returns:
        the created ErrorMessageFactory.