use of org.cloudfoundry.credhub.service.CertificateService in project credhub by cloudfoundry-incubator.
the class CertificatesHandlerTest method beforeEach.
@Before
public void beforeEach() {
Encryptor encryptor = mock(Encryptor.class);
permissionedCertificateService = mock(PermissionedCertificateService.class);
permissionCheckingService = mock(PermissionCheckingService.class);
certificateService = mock(CertificateService.class);
universalCredentialGenerator = mock(UniversalCredentialGenerator.class);
generationRequestGenerator = mock(GenerationRequestGenerator.class);
subject = new CertificatesHandler(permissionedCertificateService, certificateService, universalCredentialGenerator, generationRequestGenerator);
userContext = mock(UserContext.class);
when(userContext.getActor()).thenReturn(USER);
}
Aggregations