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

public Class ShouldHaveNoParent

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

Creates an error message when a File should not have a parent.
Author
Jean-Christophe Gay

Field Summary

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

Constructor Summary

AccessConstructor and Description
private
private

Method Summary

Modifier and TypeMethod and Description
public static ShouldHaveNoParent

Returns:

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

Creates a new ShouldHaveNoParent.

public static ShouldHaveNoParent
Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Field Detail

FILE_HAS_PARENTback to summary
public static final String FILE_HAS_PARENT
Annotations
@VisibleForTesting
PATH_HAS_PARENTback to summary
public static final String PATH_HAS_PARENT
Annotations
@VisibleForTesting

Constructor Detail

ShouldHaveNoParentback to summary
private ShouldHaveNoParent(File actual)
ShouldHaveNoParentback to summary
private ShouldHaveNoParent(Path actual)

Method Detail

shouldHaveNoParentback to summary
public static ShouldHaveNoParent shouldHaveNoParent(File actual)

Creates a new ShouldHaveNoParent.

Parameters
actual:File

the actual value in the failed assertion.

Returns:ShouldHaveNoParent

the created ErrorMessageFactory.

shouldHaveNoParentback to summary
public static ShouldHaveNoParent shouldHaveNoParent(Path actual)