Class JUnit3FloatingPointComparisonWithoutDelta

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.JUnit3FloatingPointComparisonWithoutDelta
All Implemented Interfaces:
BugChecker.MethodInvocationTreeMatcher, Suppressible, Serializable

public class JUnit3FloatingPointComparisonWithoutDelta
extends BugChecker
implements BugChecker.MethodInvocationTreeMatcher
Detects floating-point assertEquals() calls that will not work in JUnit 4.

JUnit 4 bans most but not all floating-point comparisons without a delta argument. This check will be as strict as JUnit 4, no more and no less.

Author:
mwacker@google.com (Mike Wacker)
See Also:
Serialized Form