Package org.assertj.core.error
Class ShouldBeAbsolutePath
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldBeAbsolutePath
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldBeAbsolutePath extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that aFile
orPath
is an absolute path failed.- Author:
- Yvonne Wang, Francis Galiegue
-
-
Field Summary
Fields Modifier and Type Field Description static String
SHOULD_BE_ABSOLUTE_PATH
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ShouldBeAbsolutePath(File actual)
private
ShouldBeAbsolutePath(Path actual)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldBeAbsolutePath(File actual)
Creates a new
.ShouldBeAbsolutePath
static ErrorMessageFactory
shouldBeAbsolutePath(Path actual)
-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Field Detail
-
SHOULD_BE_ABSOLUTE_PATH
public static final String SHOULD_BE_ABSOLUTE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldBeAbsolutePath
public static ErrorMessageFactory shouldBeAbsolutePath(File actual)
Creates a new
.ShouldBeAbsolutePath
- Parameters:
actual
- the actual value in the failed assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldBeAbsolutePath
public static ErrorMessageFactory shouldBeAbsolutePath(Path actual)
-
-