Class PatternObjectiveTest.TestHashCode

java.lang.Object
com.takenoko.objective.PatternObjectiveTest.TestHashCode
Enclosing class:
PatternObjectiveTest

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

    • TestHashCode

      TestHashCode()
  • Method Details

    • hashCode_WhenPatternObjectiveIsComparedToItself_ThenItHasTheSameHashCode

      @Test @DisplayName("When PatternObjective is compared to itself, it has the same hash code") void hashCode_WhenPatternObjectiveIsComparedToItself_ThenItHasTheSameHashCode()
    • hashCode_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithTheSamePattern_ThenItHasTheSameHashCode

      @Test @DisplayName("When PatternObjective is compared to another PatternObjective with the same Pattern, it has the same hash code") void hashCode_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithTheSamePattern_ThenItHasTheSameHashCode()
    • hashCode_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithADifferentPattern_ThenItHasADifferentHashCode

      @Test @DisplayName("When PatternObjective is compared to another PatternObjective with a different Pattern, it has a different hash code") void hashCode_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithADifferentPattern_ThenItHasADifferentHashCode()