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

public Class ShouldBeRelativePath

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 a Path is a relative path failed.

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
ShouldBeRelativePath(final Path actual)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

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

Creates a new ShouldBeRelativePath.

public static ErrorMessageFactory
shouldBeRelativePath(final Path actual)

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

Field Detail

SHOULD_BE_RELATIVE_PATHback to summary
public static final String SHOULD_BE_RELATIVE_PATH
Annotations
@VisibleForTesting

Constructor Detail

ShouldBeRelativePathback to summary
private ShouldBeRelativePath(File actual)
ShouldBeRelativePathback to summary
private ShouldBeRelativePath(final Path actual)

Method Detail

shouldBeRelativePathback to summary
public static ErrorMessageFactory shouldBeRelativePath(File actual)

Creates a new ShouldBeRelativePath.

Parameters
actual:File

the actual value in the failed assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldBeRelativePathback to summary
public static ErrorMessageFactory shouldBeRelativePath(final Path actual)