@Test public void reportTypeRemainsUnchangedIfNotNull() throws URISyntaxException, IOException { SignatureFile signatureFile = createSignatureFile(getSignature(), Collections.emptyList()); MockHashcodeValidationRequest validationRequest = createHashcodeValidationRequest("Detailed", Collections.singletonList(signatureFile)); ProxyRequest proxyRequest = transformer.transform(validationRequest); assertSame(proxyRequest.getReportType(), ReportType.DETAILED); }
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);  }