Class TestPatchSetApprovalUuidGenerator
java.lang.Object
com.google.gerrit.server.approval.testing.TestPatchSetApprovalUuidGenerator
- All Implemented Interfaces:
PatchSetApprovalUuidGenerator
@Singleton
public class TestPatchSetApprovalUuidGenerator
extends Object
implements PatchSetApprovalUuidGenerator
Implementation of
PatchSetApprovalUuidGenerator
that returns predictable PatchSetApproval.UUID
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(PatchSet.Id patchSetId, Account.Id accountId, String label, short value, Instant granted) GeneratesPatchSetApproval.UUID
based on the properties ofPatchSetApproval
that is being granted.
-
Constructor Details
-
TestPatchSetApprovalUuidGenerator
public TestPatchSetApprovalUuidGenerator()
-
-
Method Details
-
get
public PatchSetApproval.UUID get(PatchSet.Id patchSetId, Account.Id accountId, String label, short value, Instant granted) Description copied from interface:PatchSetApprovalUuidGenerator
GeneratesPatchSetApproval.UUID
based on the properties ofPatchSetApproval
that is being granted.- Specified by:
get
in interfacePatchSetApprovalUuidGenerator
-