google-nomulus/javatests/google/registry/export
jianglai ebce333d5b Export registered domains to drive folder
The export happens in a reducer, whois instance fields all need to be serializable. The DriveConnection is therefore installed as a class variable that can be replaced with a mock during test. Class variables are not serialized. Only fields related to a particular instance are.

Note that DriveConnection is a misnomer. It is not a connection at all. It is just a thin wrapper class around the Drive service class, which provides convenient methods to write into Drive. Regardless, it cannot be serialized.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=194596695
2018-05-05 23:38:42 -04:00
..
sheet Migrate away fully from MockitoJUnitRunner 2018-04-10 17:01:04 -04:00
backup_kinds.txt Add basic AllocationToken entity and tests 2018-01-19 14:22:30 -05:00
BigqueryPollJobActionTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
BUILD Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
CheckSnapshotActionTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DatastoreBackupInfoTest.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
DatastoreBackupServiceTest.java Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
ExportConstantsTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ExportDomainListsActionTest.java Export registered domains to drive folder 2018-05-05 23:38:42 -04:00
ExportReservedTermsActionTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
ExportSnapshotActionTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
ExportUtilsTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
LoadSnapshotActionTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
PublishDetailReportActionTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
reporting_kinds.txt Add basic AllocationToken entity and tests 2018-01-19 14:22:30 -05:00
SyncGroupMembersActionTest.java Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
UpdateSnapshotViewActionTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00