@Test public void contentIsCorrectlyTransformedToBytes() throws IOException, URISyntaxException { SoapHashcodeValidationRequest validationRequest = mockValidValidationRequest(); ProxyHashcodeDataSet proxyDocument = transformer.transform(validationRequest); assertEquals(validationRequest.getSignatureFiles().getSignatureFile().get(0).getSignature(), Base64.encodeBase64String(proxyDocument.getSignatureFiles().get(0).getSignature())); }
public ProxyHashcodeDataSet transform(SoapHashcodeValidationRequest validationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(validationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(validationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(validationRequest.getSignatureFiles().getSignatureFile())); return proxyHashcodeDataSet; }
SoapHashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(SoapHashcodeValidationRequest validationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(validationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(validationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(validationRequest.getSignatureFiles().getSignatureFile())); return proxyHashcodeDataSet; } }
SoapHashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(SoapHashcodeValidationRequest validationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(validationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(validationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(validationRequest.getSignatureFiles().getSignatureFile())); return proxyHashcodeDataSet; }  }
SoapHashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(SoapHashcodeValidationRequest validationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(validationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(validationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(validationRequest.getSignatureFiles().getSignatureFile())); return proxyHashcodeDataSet; }  ProxyHashcodeDataSet transform(SoapHashcodeValidationRequest validationRequest); }
SoapHashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(SoapHashcodeValidationRequest validationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(validationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(validationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(validationRequest.getSignatureFiles().getSignatureFile())); return proxyHashcodeDataSet; }  ProxyHashcodeDataSet transform(SoapHashcodeValidationRequest validationRequest);  }