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.
  • Constructor Details

    • ShouldBeFile

      private ShouldBeFile(File actual)
  • Method Details

    • shouldBeFile

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