Class ShouldBeFile

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeFile
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a File is an existing file failed.
    Author:
    Yvonne Wang
    • Constructor Detail

      • ShouldBeFile

        private ShouldBeFile​(File actual)
    • Method Detail

      • shouldBeFile

        public static ErrorMessageFactory shouldBeFile​(File actual)
        Creates a new ShouldBeFile.
        Parameters:
        actual - the actual value in the failed assertion.
        Returns:
        the created ErrorMessageFactory.