Class MenuItemSnapshotAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<MenuItemSnapshotAssert,@Nullable MenuItemSnapshot>
nl.pim16aap2.lightkeeper.framework.assertions.MenuItemSnapshotAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<MenuItemSnapshotAssert,MenuItemSnapshot>, org.assertj.core.api.Descriptable<MenuItemSnapshotAssert>, org.assertj.core.api.ExtensionPoints<MenuItemSnapshotAssert,MenuItemSnapshot>

public final class MenuItemSnapshotAssert extends org.assertj.core.api.AbstractAssert<MenuItemSnapshotAssert,@Nullable MenuItemSnapshot>
Assertions over the material, display name and ordered lore of one frozen item observation.
  • Field Summary

    Fields inherited from class org.assertj.core.api.AbstractAssert

    info, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    org.assertj.core.api.AbstractStringAssert<?>
     
    Checks the exact display name; a blank expected name means no custom name.
    isMaterial(String expected)
    Checks the item's normalized material.
    org.assertj.core.api.ListAssert<String>
     

    Methods inherited from class org.assertj.core.api.AbstractAssert

    actual, asInstanceOf, asList, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.assertj.core.api.Descriptable

    as, as, as, describedAs, describedAs
  • Method Details

    • isMaterial

      public MenuItemSnapshotAssert isMaterial(String expected)
      Checks the item's normalized material.
      Parameters:
      expected - Material name or namespaced key.
      Returns:
      This assertion.
    • hasDisplayName

      public MenuItemSnapshotAssert hasDisplayName(String expected)
      Checks the exact display name; a blank expected name means no custom name.
      Parameters:
      expected - Expected display name.
      Returns:
      This assertion.
    • displayName

      public org.assertj.core.api.AbstractStringAssert<?> displayName()
      Returns:
      Ordinary assertions over the captured display name.
    • lore

      public org.assertj.core.api.ListAssert<String> lore()
      Returns:
      Ordinary list assertions over captured lore; use containsExactly for ordered equality.