@Test public void validMultipleSignatures() throws Exception { List<ValidationDocument> validationDocuments = getValidationDocumentSingletonList(); validationDocuments.addAll(getValidationDocumentSingletonList()); Reports response = validationService.validate(validationDocuments); Assert.assertEquals((Integer) 2, response.getSimpleReport().getValidationConclusion().getValidSignaturesCount()); Assert.assertEquals((Integer) 2, response.getSimpleReport().getValidationConclusion().getSignaturesCount()); Assert.assertEquals(2L, response.getSimpleReport().getValidationConclusion().getSignatures().size()); }
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);  }