Class OptionalDoubleShouldHaveValueCloseTo

    • Method Detail

      • shouldHaveValueCloseTo

        public static OptionalDoubleShouldHaveValueCloseTo shouldHaveValueCloseTo​(OptionalDouble optional,
                                                                                  double expectedValue,
                                                                                  Offset<Double> offset,
                                                                                  double difference)
        Indicates that the provided OptionalDouble does not have the provided argument.
        Parameters:
        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.
        Returns:
        a error message factory