Search in sources :

Example 1 with PermissionedCertificateService

use of org.cloudfoundry.credhub.service.PermissionedCertificateService 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);
}
Also used : PermissionCheckingService(org.cloudfoundry.credhub.service.PermissionCheckingService) PermissionedCertificateService(org.cloudfoundry.credhub.service.PermissionedCertificateService) UserContext(org.cloudfoundry.credhub.auth.UserContext) PermissionedCertificateService(org.cloudfoundry.credhub.service.PermissionedCertificateService) CertificateService(org.cloudfoundry.credhub.service.CertificateService) Encryptor(org.cloudfoundry.credhub.domain.Encryptor) Before(org.junit.Before)

Aggregations

UserContext (org.cloudfoundry.credhub.auth.UserContext)1 Encryptor (org.cloudfoundry.credhub.domain.Encryptor)1 CertificateService (org.cloudfoundry.credhub.service.CertificateService)1 PermissionCheckingService (org.cloudfoundry.credhub.service.PermissionCheckingService)1 PermissionedCertificateService (org.cloudfoundry.credhub.service.PermissionedCertificateService)1 Before (org.junit.Before)1