use of org.cloudfoundry.credhub.service.PermissionedCredentialService in project credhub by cloudfoundry-incubator.
the class CredentialsHandlerTest method beforeEach.
@Before
public void beforeEach() {
Encryptor encryptor = mock(Encryptor.class);
permissionedCredentialService = mock(PermissionedCredentialService.class);
permissionCheckingService = mock(PermissionCheckingService.class);
subject = new CredentialsHandler(permissionedCredentialService);
userContext = mock(UserContext.class);
when(userContext.getActor()).thenReturn(USER);
version1 = new SshCredentialVersion(CREDENTIAL_NAME);
version1.setVersionCreatedAt(VERSION1_CREATED_AT);
version1.setEncryptor(encryptor);
version2 = new SshCredentialVersion(CREDENTIAL_NAME);
version2.setVersionCreatedAt(VERSION2_CREATED_AT);
version2.setEncryptor(encryptor);
}
Aggregations