Class DisplayableAssert

java.lang.Object
it.tidalwave.ui.test.DisplayableAssert

@API(status=EXPERIMENTAL) public class DisplayableAssert extends Object
Assertions for the Displayable role.
Since:
3.0-ALPHA-3
Author:
Fabrizio Giudici
  • Field Details

    • displayable

      @Nonnull protected final Displayable displayable
      The Displayable under inspection.
  • Constructor Details

    • DisplayableAssert

      public DisplayableAssert()
  • Method Details

    • withDisplayName

      @Nonnull public DisplayableAssert withDisplayName(@Nonnull org.springframework.util.function.ThrowingSupplier<String> displayName)
      Asserts that the object under inspection has the given display name.
      Parameters:
      displayName - the display name
      Returns:
      an object for fluent further assertions
    • withDisplayName

      @Nonnull public DisplayableAssert withDisplayName(@Nonnull String displayName)
      Asserts that the object under inspection has the given display name.
      Parameters:
      displayName - the display name
      Returns:
      an object for fluent further assertions