Class ShouldBeAbsolutePath

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeAbsolutePath
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a File or Path is an absolute path failed.
    • Field Detail

      • SHOULD_BE_ABSOLUTE_PATH

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

      • ShouldBeAbsolutePath

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

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

      • shouldBeAbsolutePath

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

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