@Test public void hashcodeValidationSubjectDNCorrectlyPresent() throws Exception { Reports reports = validationService.validate(getValidationDocumentSingletonList()); Assert.assertSame(1, reports.getSimpleReport().getValidationConclusion().getSignatures().size()); SignatureValidationData signature = reports.getSimpleReport().getValidationConclusion().getSignatures().get(0); assertNotNull(signature.getSubjectDistinguishedName()); assertEquals("38605170596", signature.getSubjectDistinguishedName().getSerialNumber()); assertEquals("PAULIUS PODOLSKIS", signature.getSubjectDistinguishedName().getCommonName()); }
public Reports validate(List<ValidationDocument> validationDocuments) { List<Reports> reports = validationDocuments.stream().map(validationDocument -> validateDocument(validationDocument)).collect(Collectors.toList()); return mergeReportsToOne(reports); }
HashcodeGenericValidationService extends GenericValidationService { public Reports validate(List<ValidationDocument> validationDocuments) { List<Reports> reports = validationDocuments.stream().map(validationDocument -> validateDocument(validationDocument)).collect(Collectors.toList()); return mergeReportsToOne(reports); } }
HashcodeGenericValidationService extends GenericValidationService { public Reports validate(List<ValidationDocument> validationDocuments) { List<Reports> reports = validationDocuments.stream().map(validationDocument -> validateDocument(validationDocument)).collect(Collectors.toList()); return mergeReportsToOne(reports); }  }
HashcodeGenericValidationService extends GenericValidationService { public Reports validate(List<ValidationDocument> validationDocuments) { List<Reports> reports = validationDocuments.stream().map(validationDocument -> validateDocument(validationDocument)).collect(Collectors.toList()); return mergeReportsToOne(reports); }  Reports validate(List<ValidationDocument> validationDocuments); }
HashcodeGenericValidationService extends GenericValidationService { public Reports validate(List<ValidationDocument> validationDocuments) { List<Reports> reports = validationDocuments.stream().map(validationDocument -> validateDocument(validationDocument)).collect(Collectors.toList()); return mergeReportsToOne(reports); }  Reports validate(List<ValidationDocument> validationDocuments);  }