@Test @DisplayName("not accept same expected and actual values") void notAcceptSameExpectedAndActual() { double value = 19.19; assertThrows(IllegalArgumentException.class, () -> unexpectedValue(value, value, NEW_VALUE, VERSION)); }
public static ValueMismatch unexpectedValue(double expected, double actual, double newValue, int version) { checkNotNullOrEqual(expected, actual); return of(expected, actual, newValue, version); }
DoubleMismatch { public static ValueMismatch unexpectedValue(double expected, double actual, double newValue, int version) { checkNotNullOrEqual(expected, actual); return of(expected, actual, newValue, version); } }
DoubleMismatch { public static ValueMismatch unexpectedValue(double expected, double actual, double newValue, int version) { checkNotNullOrEqual(expected, actual); return of(expected, actual, newValue, version); } private  DoubleMismatch(); }
DoubleMismatch { public static ValueMismatch unexpectedValue(double expected, double actual, double newValue, int version) { checkNotNullOrEqual(expected, actual); return of(expected, actual, newValue, version); } private  DoubleMismatch(); static ValueMismatch expectedZero(double actual, double newValue, int version); static ValueMismatch expectedNonZero(double expected, double newValue, int version); static ValueMismatch unexpectedValue(double expected, double actual,
                                                double newValue, int version); static ValueMismatch of(double expected, double actual, double newValue, int version); static double unpackExpected(ValueMismatch mismatch); static double unpackActual(ValueMismatch mismatch); static double unpackNewValue(ValueMismatch mismatch); }
DoubleMismatch { public static ValueMismatch unexpectedValue(double expected, double actual, double newValue, int version) { checkNotNullOrEqual(expected, actual); return of(expected, actual, newValue, version); } private  DoubleMismatch(); static ValueMismatch expectedZero(double actual, double newValue, int version); static ValueMismatch expectedNonZero(double expected, double newValue, int version); static ValueMismatch unexpectedValue(double expected, double actual,
                                                double newValue, int version); static ValueMismatch of(double expected, double actual, double newValue, int version); static double unpackExpected(ValueMismatch mismatch); static double unpackActual(ValueMismatch mismatch); static double unpackNewValue(ValueMismatch mismatch);  }