@Test public void xroadTypeIsCorrectlyTransformedToDocumentType() { SoapDataFilesRequest dataFilesRequest = createSoapDataFilesRequest("Ymxh", "test.xroad"); assertEquals(dataFilesRequest.getFilename(), transformer.transform(dataFilesRequest).getName()); }
public ProxyDocument transform(SoapDataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }
SoapDataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(SoapDataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; } }
SoapDataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(SoapDataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }  }
SoapDataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(SoapDataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }  ProxyDocument transform(SoapDataFilesRequest dataFilesRequest); }
SoapDataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(SoapDataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }  ProxyDocument transform(SoapDataFilesRequest dataFilesRequest);  }