Search in sources :

Example 1 with EncryptionKeySet

use of org.cloudfoundry.credhub.service.EncryptionKeySet in project credhub by cloudfoundry-incubator.

the class KeyUsageControllerTest method beforeEach.

@Before
public void beforeEach() {
    credentialVersionDataService = mock(CredentialVersionDataService.class);
    keySet = new EncryptionKeySet();
    encryptionKeyCanaryDataService = mock(EncryptionKeyCanaryDataService.class);
    final KeyUsageController keyUsageController = new KeyUsageController(credentialVersionDataService, keySet);
    mockMvc = MockMvcBuilders.standaloneSetup(keyUsageController).alwaysDo(print()).build();
}
Also used : EncryptionKeySet(org.cloudfoundry.credhub.service.EncryptionKeySet) CredentialVersionDataService(org.cloudfoundry.credhub.data.CredentialVersionDataService) EncryptionKeyCanaryDataService(org.cloudfoundry.credhub.data.EncryptionKeyCanaryDataService) Before(org.junit.Before)

Aggregations

CredentialVersionDataService (org.cloudfoundry.credhub.data.CredentialVersionDataService)1 EncryptionKeyCanaryDataService (org.cloudfoundry.credhub.data.EncryptionKeyCanaryDataService)1 EncryptionKeySet (org.cloudfoundry.credhub.service.EncryptionKeySet)1 Before (org.junit.Before)1