mirror of
https://github.com/google/nomulus
synced 2026-08-17 12:46:11 +00:00
Use new Truth failWithActual() method
Migrate Truth subjects from the old fail(String, Object) to the new failWithActual(String, Object), tweaking verbs for the new grammar.
Before:
fail("has foo", expected);
After:
failWithActual("expected to have foo", expected);
Open-source note: The fail*() methods used by this CL were added in Truth 0.41.
More information:
[]
Tested:
TAP --sample for global presubmit queue
[]
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=244418884
This commit is contained in:
@@ -80,7 +80,7 @@ abstract class AbstractEppResourceSubject
|
||||
|
||||
public And<S> hasNoHistoryEntries() {
|
||||
if (!getHistoryEntries().isEmpty()) {
|
||||
fail("has no history entries");
|
||||
failWithActual(simpleFact("expected to have no history entries"));
|
||||
}
|
||||
return andChainer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user