final void failWithActual(Iterable<Fact> facts) { doFail(append(ImmutableList.copyOf(facts), butWas())); }
/** * Fails, reporting a message with the given facts, followed by an automatically added fact of the * form: * * <ul> * <li>but was: <i>actual value</i>. * </ul> * * <p>If you have only one fact to report (and it's a {@linkplain Fact#fact key-value fact}), * prefer {@linkplain #failWithActual(String, Object) the simpler overload}. * * <p>Example usage: The check {@code isEmpty()} calls {@code failWithActual(simpleFact("expected * to be empty"))}. */ protected final void failWithActual(Fact first, Fact... rest) { doFail(sandwich(first, rest, butWas())); }