Class ShouldBeWritable

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeWritable
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a File is writable failed.
    Author:
    Olivier Demeijer
    • Constructor Detail

      • ShouldBeWritable

        private ShouldBeWritable​(File actual)
      • ShouldBeWritable

        private ShouldBeWritable​(Path actual)
    • Method Detail

      • shouldBeWritable

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