Class StrictlyEqualTo<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      StrictlyEqualTo​(T expected)
      A Quality that is satisfied if the value under test is strictly equal to the given value.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StrictlyEqualTo

        public StrictlyEqualTo​(T expected)
        A Quality that is satisfied if the value under test is strictly equal to the given value.

        "Strictly equal" means the object satisfies the equals contract as described in Object.equals(Object). This is intended to test implementation of the equals contract, not for general testing for equality and may result in unexpected outcomes, especially when used with negation.

        Note, this Quality does not support arrays.