use of com.synopsys.integration.alert.common.persistence.model.CustomCertificateModel 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