Class InventoryTest.TestEquals

java.lang.Object
com.takenoko.inventory.InventoryTest.TestEquals
Enclosing class:
InventoryTest

@Nested @DisplayName("Method equals") class InventoryTest.TestEquals extends Object
  • Constructor Details

    • TestEquals

      TestEquals()
  • Method Details

    • equals_shouldReturnTrueWhenSameObject

      @Test @DisplayName("should return true when the two objects are the same") void equals_shouldReturnTrueWhenSameObject()
    • equals_shouldReturnTrueWhenEqual

      @Test @DisplayName("should return true when the two objects are equal") void equals_shouldReturnTrueWhenEqual()
    • equals_shouldReturnFalseWhenNotEqual

      @Test @DisplayName("should return false when the two objects are not equal") void equals_shouldReturnFalseWhenNotEqual()
    • equals_shouldReturnFalseWhenOtherIsNull

      @Test @DisplayName("should return false when the other object is null") void equals_shouldReturnFalseWhenOtherIsNull()
    • equals_shouldReturnFalseWhenOtherIsNotInventory

      @Test @DisplayName("should return false when the other object is not a Inventory") void equals_shouldReturnFalseWhenOtherIsNotInventory()