public class ShouldBeEqualWithinPercentage extends BasicErrorMessageFactory
arguments, format
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
shouldBeEqualWithinPercentage(T actual,
T expected,
Percentage percentage,
T difference)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static <T extends Number> ErrorMessageFactory shouldBeEqualWithinPercentage(T actual, T expected, Percentage percentage, T difference)
ShouldBeEqualWithinPercentage
.actual
- the actual value in the failed assertion.expected
- the expected value in the failed assertion.percentage
- the given positive percentage.difference
- the effective difference between actual and expected.ErrorMessageFactory
.Copyright © 2013–2018 AssertJ. All rights reserved.