Class ShouldExist

    • Field Detail

      • PATH_SHOULD_EXIST

        public static final java.lang.String PATH_SHOULD_EXIST
        See Also:
        Constant Field Values
      • PATH_SHOULD_EXIST_NO_FOLLOW_LINKS

        public static final java.lang.String PATH_SHOULD_EXIST_NO_FOLLOW_LINKS
        See Also:
        Constant Field Values
      • FILE_SHOULD_EXIST

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

      • ShouldExist

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

        private ShouldExist​(java.nio.file.Path actual,
                            boolean followLinks)
    • Method Detail

      • shouldExist

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

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