Class InventoryTest.TestHashCode

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

@Nested @DisplayName("Method hashCode") class InventoryTest.TestHashCode extends Object
  • Constructor Details

    • TestHashCode

      TestHashCode()
  • Method Details

    • hashCode_shouldReturnSameHashCodeWhenEqual

      @Test @DisplayName("should return the same hash code when the two objects are equal") void hashCode_shouldReturnSameHashCodeWhenEqual()
    • hashCode_shouldReturnDifferentHashCodeWhenNotEqual

      @Test @DisplayName("should return a different hash code when the two objects are not equal") void hashCode_shouldReturnDifferentHashCodeWhenNotEqual()