@Test public void signaturePolicyRemainsUnchanged() throws IOException, URISyntaxException { SignatureFile signatureFile = createSignatureFile(getSignature(), Collections.emptyList()); MockHashcodeValidationRequest validationRequest = createHashcodeValidationRequest(null, Collections.singletonList(signatureFile)); ProxyRequest proxyRequest = transformer.transform(validationRequest); assertEquals(validationRequest.getSignaturePolicy(), proxyRequest.getSignaturePolicy()); }
public ProxyHashcodeDataSet transform(HashcodeValidationRequest hashcodeValidationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(hashcodeValidationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(hashcodeValidationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(hashcodeValidationRequest.getSignatureFiles())); return proxyHashcodeDataSet; }
HashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(HashcodeValidationRequest hashcodeValidationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(hashcodeValidationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(hashcodeValidationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(hashcodeValidationRequest.getSignatureFiles())); return proxyHashcodeDataSet; } }
HashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(HashcodeValidationRequest hashcodeValidationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(hashcodeValidationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(hashcodeValidationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(hashcodeValidationRequest.getSignatureFiles())); return proxyHashcodeDataSet; }  }
HashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(HashcodeValidationRequest hashcodeValidationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(hashcodeValidationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(hashcodeValidationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(hashcodeValidationRequest.getSignatureFiles())); return proxyHashcodeDataSet; }  ProxyHashcodeDataSet transform(HashcodeValidationRequest hashcodeValidationRequest); }
HashcodeValidationRequestToProxyDocumentTransformer { public ProxyHashcodeDataSet transform(HashcodeValidationRequest hashcodeValidationRequest) { ProxyHashcodeDataSet proxyHashcodeDataSet = new ProxyHashcodeDataSet(); setReportType(hashcodeValidationRequest, proxyHashcodeDataSet); proxyHashcodeDataSet.setSignaturePolicy(hashcodeValidationRequest.getSignaturePolicy()); proxyHashcodeDataSet.setSignatureFiles(mapSignatureFiles(hashcodeValidationRequest.getSignatureFiles())); return proxyHashcodeDataSet; }  ProxyHashcodeDataSet transform(HashcodeValidationRequest hashcodeValidationRequest);  }