Class ShouldHaveNoParent

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldHaveNoParent
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldHaveNoParent extends BasicErrorMessageFactory
Creates an error message when a File should not have a parent.
  • Field Details

  • Constructor Details

    • ShouldHaveNoParent

      private ShouldHaveNoParent(File actual)
    • ShouldHaveNoParent

      private ShouldHaveNoParent(Path actual)
  • Method Details

    • shouldHaveNoParent

      public static ShouldHaveNoParent shouldHaveNoParent(File actual)
      Creates a new ShouldHaveNoParent.
      Parameters:
      actual - the actual value in the failed assertion.
      Returns:
      the created ErrorMessageFactory.
    • shouldHaveNoParent

      public static ShouldHaveNoParent shouldHaveNoParent(Path actual)