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.UUIDbased on the properties ofPatchSetApprovalthat 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:PatchSetApprovalUuidGeneratorGeneratesPatchSetApproval.UUIDbased on the properties ofPatchSetApprovalthat is being granted.- Specified by:
getin interfacePatchSetApprovalUuidGenerator
-