Package org.assertj.core.error
Class ShouldBeFile
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeFile
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeFile extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
is an existing file failed.File
- Author:
- Yvonne Wang
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldBeFile(File actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeFile(File actual)
Creates a new
.ShouldBeFile
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
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
.
-
-