Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldBeAbsolutePath

extends BasicErrorMessageFactory
Class Inheritance
Imports
java.io.File, java.nio.file.Path, org.assertj.core.util.VisibleForTesting

Creates an error message indicating that an assertion that verifies that a File or Path is an absolute path failed.
Authors
Yvonne Wang, Francis Galiegue

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
private
ShouldBeAbsolutePath(final Path actual)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldBeAbsolutePath
(File
the actual value in the failed assertion.
actual
)

Creates a new ShouldBeAbsolutePath.

public static ErrorMessageFactory
shouldBeAbsolutePath(final Path actual)

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Field Detail

SHOULD_BE_ABSOLUTE_PATHback to summary
public static final String SHOULD_BE_ABSOLUTE_PATH
Annotations
@VisibleForTesting

Constructor Detail

ShouldBeAbsolutePathback to summary
private ShouldBeAbsolutePath(File actual)
ShouldBeAbsolutePathback to summary
private ShouldBeAbsolutePath(final Path actual)

Method Detail

shouldBeAbsolutePathback to summary
public static ErrorMessageFactory shouldBeAbsolutePath(File actual)

Creates a new ShouldBeAbsolutePath.

Parameters
actual:File

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeAbsolutePathback to summary
public static ErrorMessageFactory shouldBeAbsolutePath(final Path actual)