Class PatternObjectiveTest.TestEquals

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

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

    • TestEquals

      TestEquals()
  • Method Details

    • equals_WhenPatternObjectiveIsComparedToItself_ThenItIsEqual

      @Test @DisplayName("When PatternObjective is compared to itself, it is equal") void equals_WhenPatternObjectiveIsComparedToItself_ThenItIsEqual()
    • equals_WhenPatternObjectiveIsComparedToNull_ThenItIsNotEqual

      @Test @DisplayName("When PatternObjective is compared to null, it is not equal") void equals_WhenPatternObjectiveIsComparedToNull_ThenItIsNotEqual()
    • equals_WhenPatternObjectiveIsComparedToAnObjectOfAnotherClass_ThenItIsNotEqual

      @Test @DisplayName("When PatternObjective is compared to an object of another class, it is not equal") void equals_WhenPatternObjectiveIsComparedToAnObjectOfAnotherClass_ThenItIsNotEqual()
    • equals_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithTheSamePattern_ThenItIsEqual

      @Test @DisplayName("When PatternObjective is compared to another PatternObjective with the same Pattern, it is equal") void equals_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithTheSamePattern_ThenItIsEqual()
    • equals_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithADifferentPattern_ThenItIsNotEqual

      @Test @DisplayName("When PatternObjective is compared to another PatternObjective with a different Pattern, it is not equal") void equals_WhenPatternObjectiveIsComparedToAnotherPatternObjectiveWithADifferentPattern_ThenItIsNotEqual()