Class ShouldNotExist

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldNotExist
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a File or Path does not exist failed.
    • Field Detail

      • PATH_SHOULD_NOT_EXIST

        public static final java.lang.String PATH_SHOULD_NOT_EXIST
        See Also:
        Constant Field Values
      • FILE_SHOULD_NOT_EXIST

        public static final java.lang.String FILE_SHOULD_NOT_EXIST
        See Also:
        Constant Field Values
    • Constructor Detail

      • ShouldNotExist

        private ShouldNotExist​(java.io.File actual)
      • ShouldNotExist

        private ShouldNotExist​(java.nio.file.Path actual)
    • Method Detail

      • shouldNotExist

        public static ErrorMessageFactory shouldNotExist​(java.io.File actual)
        Creates a new ShouldNotExist.
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.
      • shouldNotExist

        public static ErrorMessageFactory shouldNotExist​(java.nio.file.Path actual)
      • shouldExistNoFollowLinks

        public static ErrorMessageFactory shouldExistNoFollowLinks​(java.nio.file.Path actual)