Package org.assertj.core.error
Class ShouldBeWritable
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeWritable
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeWritable extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
is writable failed.File
- Author:
- Olivier Demeijer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static String
SHOULD_BE_WRITABLE
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldBeWritable(File actual)
private
ShouldBeWritable(Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeWritable(File actual)
Creates a new
.ShouldBeWritable
static ErrorMessageFactory
shouldBeWritable(Path actual)
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
SHOULD_BE_WRITABLE
static final String SHOULD_BE_WRITABLE
- See Also:
- Constant Field Values
-
-
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
.
-
shouldBeWritable
public static ErrorMessageFactory shouldBeWritable(Path actual)
-
-