@Test public void ddocTypeIsCorrectlyTransformedToDocumentType() { assertEquals(DocumentType.DDOC.name().toLowerCase(), transformer.transform(dataFilesRequest).getName()); }
public ProxyDocument transform(DataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }
DataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(DataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; } }
DataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(DataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }  }
DataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(DataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }  ProxyDocument transform(DataFilesRequest dataFilesRequest); }
DataFilesRequestToProxyDocumentTransformer { public ProxyDocument transform(DataFilesRequest dataFilesRequest) { ProxyDocument proxyDocument = new ProxyDocument(); proxyDocument.setName(dataFilesRequest.getFilename()); proxyDocument.setBytes(Base64.decodeBase64(dataFilesRequest.getDocument())); return proxyDocument; }  ProxyDocument transform(DataFilesRequest dataFilesRequest);  }