google-nomulus/javatests/google/registry/export
guyben 978149e677 Create an injectable LockHandler
We create an injectable LockHandler that just calls the static
Lock.executeWithLocks function.

I'm not sure what's the correct place to put the LockHandler. I think
model/server is only appropriate for the actual datastore lock. This is a "per request" lock, so maybe request/lock?

-----------------------------

This is the initial step in adding the "lock implicitly released on request death" feature, but it's also useful on its own - easier to test Actions when we can use a fake lock.

To keep this CL simple, we keep using the old Lock as is in most places. We just choose a single example to convert to LockHandler to showcase it. Converting all other uses will be in a subsequent CL.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=167357564
2017-09-12 15:51:50 -04:00
..
sheet Create an injectable LockHandler 2017-09-12 15:51:50 -04:00
backup_kinds.txt Add Cloud KMS based secret storage 2017-02-17 12:22:12 -05:00
BigqueryPollJobActionTest.java Perform some minor test cleanup 2017-08-01 16:20:49 -04:00
BUILD Add MOE equivalence for sync on 2016-12-19 2017-01-09 11:59:04 -05:00
CheckSnapshotActionTest.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:42:43 -04:00
DatastoreBackupInfoTest.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
DatastoreBackupServiceTest.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:42:43 -04:00
ExportConstantsTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ExportDomainListsActionTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ExportReservedTermsActionTest.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:42:43 -04:00
ExportSnapshotActionTest.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:42:43 -04:00
ExportUtilsTest.java Remove UNRESERVED as a reservation type 2017-03-27 13:31:33 -04:00
LoadSnapshotActionTest.java Remove some unnecessary uses of MockitoJUnitRunner, which is discouraged 2017-04-26 10:42:43 -04:00
PublishDetailReportActionTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
reporting_kinds.txt Add Cloud KMS based secret storage 2017-02-17 12:22:12 -05:00
SyncGroupMembersActionTest.java Make Registrar load methods return Optionals instead of Nullables 2017-08-01 16:58:59 -04:00
UpdateSnapshotViewActionTest.java Add standardSQL views to Bigquery Datastore snapshots 2017-08-01 17:03:28 -04:00