google-nomulus/javatests/google/registry
weiminyu 1200fd282f 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
..
backup Allow third_party/java_src/gtld/ to use :mockito2_for_third_party 2019-03-20 14:25:28 -04:00
batch Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
beam Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
bigquery Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
builddefs Fix .bzl files with buildifier 2019-02-25 11:13:08 -05:00
config Configure client id and client secret in the config file 2018-12-05 16:04:08 -05:00
cron Clean up third_party imports in BUILD files 2018-07-14 01:11:51 -04:00
dns Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers 2019-05-30 12:52:21 -04:00
documentation Fix some statically detected code issues 2019-04-22 12:54:34 -04:00
export Export PollMessage entities to BigQuery 2019-06-07 11:41:22 -04:00
flows Allow reserved domains to be created during quiet periods 2019-06-06 10:53:27 -04:00
groups Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
keyring Migrate from is(Not)SameAs to is(Not)SameInstanceAs. 2019-05-06 16:42:30 -04:00
mapreduce/inputs Merge DomainResource into DomainBase 2019-01-28 15:57:10 -05:00
model Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
module Allow third_party/java_src/gtld/ to use :mockito2_for_third_party 2019-03-20 14:25:28 -04:00
monitoring/whitebox Allow third_party/java_src/gtld/ to use :mockito2_for_third_party 2019-03-20 14:25:28 -04:00
pricing Clean up third_party imports in BUILD files 2018-07-14 01:11:51 -04:00
proxy Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
rdap Conform to RDAP Technical Implementation Guide 2019-06-07 11:43:09 -04:00
rde Migrate from containsAllOf to containsAtLeast 2019-05-06 16:53:03 -04:00
reporting Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
request Migrate from containsAllOf to containsAtLeast 2019-05-06 16:53:03 -04:00
security Allow third_party/java_src/gtld/ to use :mockito2_for_third_party 2019-03-20 14:25:28 -04:00
server Fix Kokoro build 2019-04-05 11:56:24 -04:00
storage/drive Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
testing Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
tldconfig/idn Remove the use of InjectRule in IdnLabelValidatorTest 2018-10-22 18:54:53 -04:00
tmch Replace deprecated Mockito Matchers class 2019-05-06 16:21:27 -04:00
tools Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
ui Add Google Analytics to registrar console 2019-05-21 11:35:34 -04:00
util Migrate from is(Not)SameAs to is(Not)SameInstanceAs. 2019-05-06 16:42:30 -04:00
webdriver Resolve carry-over state issue in TestServerRule 2019-05-13 12:29:53 -04:00
whois Conform to RDAP Response Profile 15feb19 2019-05-30 12:52:21 -04:00
xjc Clean up internal imports in BUILD files 2018-07-14 01:37:03 -04:00
xml Fix some issues caught by IntelliJ static code analysis 2019-01-28 16:08:24 -05:00