Class RelaxedEqualsVerifierApi<T>

    • Constructor Detail

      • RelaxedEqualsVerifierApi

        public RelaxedEqualsVerifierApi​(Class<T> type,
                                        List<T> examples)
        Constructor.
        Parameters:
        type - The class for which the equals method should be tested.
        examples - A list of example instances that are equal but not identical to one another.
    • Method Detail

      • andUnequalExample

        public SingleTypeEqualsVerifierApi<T> andUnequalExample​(T example)
        Asks for an unequal instance of T and subsequently returns a fully constructed instance of EqualsVerifier.
        Parameters:
        example - An instance of T that is unequal to the previously supplied equal examples.
        Returns:
        An instance of EqualsVerifier.
      • andUnequalExamples

        @SafeVarargs
        public final SingleTypeEqualsVerifierApi<T> andUnequalExamples​(T first,
                                                                       T... more)
        Asks for a list of unequal instances of T and subsequently returns a fully constructed instance of EqualsVerifier.
        Parameters:
        first - An instance of T that is unequal to the previously supplied equal examples.
        more - More instances of T, all of which are unequal to one another, to first, and to the previously supplied equal examples. May also contain instances of subclasses of T.
        Returns:
        An instance of EqualsVerifier.