google-nomulus/javatests/google/registry/testing
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
..
mapreduce Allow third_party/java_src/gtld/ to use :mockito2_for_third_party 2019-03-20 14:25:28 -04:00
sftp [CL 2 of 3] Update apache mina library from v1_6_0 to v2_1_0 2018-10-08 16:59:29 -04:00
testdata Refactor RdeKeyringModule into FakeKeyringModule 2017-03-21 14:53:25 -04:00
AbstractEppResourceSubject.java Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
AppEngineAdminApiHelper.java Add option --non_live_versions to set_num_instances command 2018-12-03 18:58:05 -05:00
AppEngineRule.java Change the email address for the second test registrar 2019-04-11 14:52:43 -04:00
AppEngineRuleTest.java Do not complain about empty auto-index file 2019-01-28 16:11:52 -05:00
BouncyCastleProviderRule.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
BUILD Allow third_party/java_src/gtld/ to use :mockito2_for_third_party 2019-03-20 14:25:28 -04:00
CertificateSamples.java Fix a few stylistic issues in preparation for Checkstyle addition 2019-01-24 19:57:14 -05:00
ContactResourceSubject.java Instead of calling Subject.actual(), store the actual value in a field, and read that. 2019-05-13 12:38:09 -04:00
DatastoreHelper.java Fix various Error Prone errors that were found by the FOSS build 2019-01-28 16:05:09 -05:00
default_premium_list_testdata.csv Add premium support to nomulus create_domain command 2018-06-06 15:11:44 -04:00
DeterministicStringGenerator.java Create GenerateAllocationTokens nomulus tool command 2018-01-19 14:26:56 -05:00
DomainBaseSubject.java Migrate users from the old, deprecated Subject.fail* methods to the new Subject.fail* methods or, in some cases, to Subject.check. 2019-05-21 11:40:53 -04:00
EppExceptionSubject.java Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
EppLoader.java Refactor EppXmlTransformer to be in the model/ package 2018-12-12 13:22:34 -05:00
EppMetricSubject.java Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
FailAnswer.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
FakeClock.java Make our Clock util Serializable 2018-06-27 15:28:52 -04:00
FakeHttpSession.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
FakeJsonResponse.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
FakeKeyringModule.java Rename DNL and SMDRL "login" to "loginAndPassword" 2019-01-28 16:15:04 -05:00
FakeLockHandler.java Fix some issues caught by IntelliJ static code analysis 2019-01-28 16:08:24 -05:00
FakeOAuthService.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
FakeResponse.java Switch to constructor injection in a few actions 2019-02-06 17:53:49 -05:00
FakeServletInputStream.java Fix various Error Prone errors that were found by the FOSS build 2019-01-28 16:05:09 -05:00
FakeServletOutputStream.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
FakeSleeper.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
FakeURLFetchService.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
FakeUserService.java Daggerize XsrfTokenManager 2017-02-22 11:43:10 -05:00
ForwardingURLFetchService.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
FullFieldsTestEntityHelper.java Conform to RDAP Response Profile 15feb19 2019-05-30 12:52:21 -04:00
GcsTestingUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
GenericEppResourceSubject.java Replace FailureStrategy with FailureMetadata in gtld's Subjects 2017-11-21 18:39:45 -05:00
GoldenFileTestHelper.java Add the App Engine service used in the Action definition 2019-01-17 18:59:16 -05:00
GpgSystemCommandRule.java Fix bugs exposed by testing with Gradle 2018-10-17 11:44:41 -04:00
HistoryEntrySubject.java Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
HostResourceSubject.java Instead of calling Subject.actual(), store the actual value in a field, and read that. 2019-05-13 12:38:09 -04:00
InjectRule.java Remove references to Eclipse 2018-03-19 18:45:41 -04:00
Lazies.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
logging.properties Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
LogsSubject.java Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ReflectiveFieldExtractor.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ShardableTestCase.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
SlurpAnswer.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
SystemInfo.java Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
SystemPropertyRule.java Restore original System Properties after tests 2018-11-14 11:57:23 -05:00
TaskQueueHelper.java Remove more unnecessary "throws" declarations 2018-06-27 15:28:52 -04:00
TestCacheRule.java Fix some statically detected code issues 2019-04-22 12:54:34 -04:00
TestDataHelper.java Consolidate the domain_renew_fee xml test files 2019-03-29 15:53:03 -04:00
TestLogHandlerUtils.java Add asynchronous scheduled actions to re-save entities 2018-06-27 15:28:52 -04:00
TestObject.java Add @VirtualEntity checking to Ofy's deleteWithoutBackup() 2017-02-08 17:31:07 -05:00
TruthChainer.java Cloned from CL 251456914 by 'g4 patch'. 2019-06-07 11:46:44 -04:00
UriParameters.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
UserInfo.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00