use of com.synopsys.integration.alert.database.certificates.CustomCertificateRepository in project hub-alert by blackducksoftware.
the class DefaultCustomCertificateAccessorTest method storeCertificateTest.
@Test
public void storeCertificateTest() throws Exception {
CustomCertificateModel certificateModel = new CustomCertificateModel(alias, content, testDate.toString());
CustomCertificateRepository customCertificateRepository = new MockCustomCertificateRepository();
DefaultCustomCertificateAccessor customCertificateAccessor = new DefaultCustomCertificateAccessor(customCertificateRepository);
CustomCertificateModel customCertificateModel = customCertificateAccessor.storeCertificate(certificateModel);
testCustomCertificateModel(expectedCustomCertificateModel, customCertificateModel);
}
Aggregations