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 ofPatchSetApprovalUuidGenerator
that returns predictablePatchSetApproval.UUID
.
-
-
Constructor Summary
Constructors Constructor Description TestPatchSetApprovalUuidGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchSetApproval.UUID
get(PatchSet.Id patchSetId, Account.Id accountId, String label, short value, Instant granted)
GeneratesPatchSetApproval.UUID
based on the properties ofPatchSetApproval
that is being granted.
-
-
-
Method Detail
-
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
-
-