Class StrictlyEqualTo<T>
- java.lang.Object
-
- org.saynotobugs.confidence.quality.composite.QualityComposition<T>
-
- org.saynotobugs.confidence.quality.object.StrictlyEqualTo<T>
-
- All Implemented Interfaces:
Quality<T>
public final class StrictlyEqualTo<T> extends QualityComposition<T>
-
-
Constructor Summary
Constructors Constructor Description StrictlyEqualTo(T expected)AQualitythat is satisfied if the value under test is strictly equal to the given value.
-
Method Summary
-
Methods inherited from class org.saynotobugs.confidence.quality.composite.QualityComposition
assessmentOf, description
-
-
-
-
Constructor Detail
-
StrictlyEqualTo
public StrictlyEqualTo(T expected)
AQualitythat 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
Qualitydoes not support arrays.
-
-