google-nomulus/javatests/google/registry/model
weiminyu 7c64992c73 Cloned from CL 251456914 by 'g4 patch'.
Original change by cpovirk@cpovirk:rosie251284456-0055_Rosie:31511:citc on 2019/06/04 09:48:27.

Update to Truth 0.45, and address deprecations.

Renames may include:
- containsAllOf => containsAtLeast
- containsAllIn => containsAtLeastElementsIn
- isSameAs => isSameInstanceAs
- isOrdered => isInOrder
- isStrictlyOrdered => isInStrictOrder

The other major change is to change custom subjects to extend raw Subject instead of supplying type parameters. The type parameters are being removed from Subject. This CL will temporarily produce rawtypes warnings, which will go away when I remove the type parameters (as soon as this batch of CLs is submitted).

Some CLs in this batch also migrate calls away from actualAsString(). Its literal replacement is `"<" + actual + ">"` (unless an object overrides actualCustomStringRepresentation()), but usually I've made a larger change, such as switching from an old-style "Not true that..." failure message to one generated with the Fact API. In that case, the new code usually contains a direct reference to this.actual (a field that I occasionally had to create). Another larger change I sometimes made is to switch from a manual check-and-fail approach to instead use check(...). And sometimes I just remove a withMessage() call that's no longer necessary now that the code uses check(...), or I introduce a check(...) call. (An assertion made with check(...) automatically includes the actual value from the original subject, so there's no need to set it again with withMessage().)

Finally, there's one CL in this batch in which I migrate a Correspondence subclass to instead use Correspondence.from.

END_PUBLIC

If this is too many changes at once, let me know, and I can split it up and/or explain further. In the past, I've erred on the side of sending separate CLs for each change, which has required some owners to manually reapply each one, so now I'm trying this way.

Thanks again for your patience. There is an outside chance that this will be the last CL I send you before Truth 1.0 -- but certainly no promises :)

More information:
  Renames:
    []
    []
    []
  Removing type parameters: []
  Migration from old fail*(...) methods to new ones and to check(...): []
  Changes that replace assert*(...) with introduce check(...): []
  Correspondence subclass to Correspondence.from: []

Tested:
    TAP --sample ran all affected tests and none failed
    []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=251921007
2019-06-07 11:46:44 -04:00
..
billing Store a reference to an allocation token in the OneTime billing event 2019-04-26 23:57:56 -04:00
common Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
contact Make loadByForeignKey() and related methods return Optional 2018-12-14 11:24:49 -05:00
domain Conform to RDAP Response Profile 15feb19 2019-05-30 12:52:21 -04:00
eppcommon Refactor EppXmlTransformer to be in the model/ package 2018-12-12 13:22:34 -05:00
eppinput Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
eppoutput Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
host Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
index Define TestRule that manages cache use in tests 2019-01-11 11:50:33 -05:00
mark Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ofy Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
poll Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
rde Migrate away from VoidWorks 2018-06-27 15:28:52 -04:00
registrar Automated g4 rollback of changelist 240574585. 2019-03-29 16:23:59 -04:00
registry Remove per-domain nameserver restrictions in reserved lists 2019-04-16 14:09:27 -04:00
reporting Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
server Define TestRule that manages cache use in tests 2019-01-11 11:50:33 -05:00
smd Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
testdata Store a reference to an allocation token in the OneTime billing event 2019-04-26 23:57:56 -04:00
tmch Explicitly set the shard size when saving the claims list 2018-10-22 19:13:11 -04:00
transfer Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
translators Refactor EppXmlTransformer to be in the model/ package 2018-12-12 13:22:34 -05:00
BUILD Fix Bazel build error 2019-05-06 17:00:03 -04:00
CreateAutoTimestampTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
EntityClassesTest.java Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
EntityTestCase.java Fix various Error Prone errors that were found by the FOSS build 2019-01-28 16:05:09 -05:00
EppResourceTest.java Define TestRule that manages cache use in tests 2019-01-11 11:50:33 -05:00
EppResourceUtilsTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ImmutableObjectTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
ModelUtilsTest.java Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
OteAccountBuilderTest.java Rationalize OT&E client ID validation rules 2019-01-14 16:28:12 -05:00
OteStatsTest.java Make a prettier table to display OT&E check results 2019-01-28 16:10:16 -05:00
OteStatsTestHelper.java Make a prettier table to display OT&E check results 2019-01-28 16:10:16 -05:00
ResourceCommandTestCase.java Refactor EppXmlTransformer to be in the model/ package 2018-12-12 13:22:34 -05:00
SchemaVersionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
UpdateAutoTimestampTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00