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