mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Migrate users from the old, deprecated Subject.fail* methods to the new Subject.fail* methods or, in some cases, to Subject.check.
Most of the changes in this CL were made manually. I've tried to preserve all information (and of course behavior!), but the format and grammar of the messages does change. For example before-and-after messages, see the LSC doc. In some of the CLs in this round (e.g., jscomp), I don't know a lot about the domain being tested, and the assertions are complex, so please let me know if my new phrasing is wrong or confusing. Thanks again for your patience with all the Truth changes lately. END_PUBLIC More information: [] Tested: TAP for global presubmit queue [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=248543745
This commit is contained in:
parent
6ce74ff61b
commit
73f7e185f2
5 changed files with 43 additions and 86 deletions
|
@ -60,7 +60,7 @@ public class EppExceptionSubject extends Subject<EppExceptionSubject, EppExcepti
|
|||
.build()),
|
||||
ValidationMode.STRICT);
|
||||
} catch (XmlException e) {
|
||||
fail("fails to marshal to XML: " + e.getMessage());
|
||||
failWithActual("expected to marshal to XML, but failed with exception", e.getMessage());
|
||||
}
|
||||
return new And<>(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue