public class OptionalDoubleShouldHaveValueCloseTo extends BasicErrorMessageFactory
OptionalDouble
should have a specific value close to an offset.arguments, format
Modifier and Type | Method and Description |
---|---|
static OptionalDoubleShouldHaveValueCloseTo |
shouldHaveValueCloseTo(double expectedValue)
Indicates that an
OptionalDouble is empty so it doesn't have the expected value. |
static OptionalDoubleShouldHaveValueCloseTo |
shouldHaveValueCloseTo(OptionalDouble optional,
double expectedValue,
Offset<Double> offset,
double difference)
Indicates that the provided
OptionalDouble does not have the provided argument. |
create, create, create, equals, hashCode, toString, unquotedString
public static OptionalDoubleShouldHaveValueCloseTo shouldHaveValueCloseTo(OptionalDouble optional, double expectedValue, Offset<Double> offset, double difference)
OptionalDouble
does not have the provided argument.optional
- the OptionalDouble
which has a value.expectedValue
- the value we expect to be in the provided OptionalDouble
.offset
- the given positive offset.difference
- the effective difference between actual and expected.public static OptionalDoubleShouldHaveValueCloseTo shouldHaveValueCloseTo(double expectedValue)
OptionalDouble
is empty so it doesn't have the expected value.expectedValue
- the value we expect to be in an OptionalDouble
.Copyright © 2014–2016 AssertJ. All rights reserved.