Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.
This repository was archived by the owner on Aug 8, 2020. It is now read-only.

add transitivity check to equals integrity test #12

@SierraGolf

Description

@SierraGolf

background
the transitivity requirement on the equals implementation can only be tested partially when considering one class (the class under test) and is partially covered with symmetry requirement check. in order to allow a transitivity check for multiple related classes there should be an optional test which checks two or more given classes to be transitive to the class under test.

requirements

  • the interface should force the user to provide at least 2 classes
  • class can but do not have to be related (sharing an interface or being part of the same class hierarchy)

signature
Builder checkTransitivityTo(Class classA, Class classB, Class... otherClasses)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions