Skip to content

Commit

Permalink
removed snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed May 17, 2018
1 parent 0f6c5ba commit 0085b47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion imixs-archive-cassandra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.imixs.workflow.version>4.3.0-SNAPSHOT</org.imixs.workflow.version>
<custom.webResources>src/main/webapp</custom.webResources>
<imixs-archive.applicationname>Imixs-Workflow-Archive</imixs-archive.applicationname>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

import org.imixs.workflow.ItemCollection;
import org.imixs.workflow.WorkflowKernel;
import org.imixs.workflow.xml.DocumentCollection;
import org.imixs.workflow.xml.XMLItemCollection;
import org.imixs.workflow.xml.XMLItemCollectionAdapter;
import org.imixs.workflow.xml.XMLDataCollection;
import org.imixs.workflow.xml.XMLDataCollectionAdapter;
import org.imixs.workflow.xml.XMLDocument;
import org.imixs.workflow.xml.XMLDocumentAdapter;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
Expand Down Expand Up @@ -49,11 +50,11 @@ public void testXML() {
try {

// convert the ItemCollection into a XMLItemcollection...
XMLItemCollection xmlItemCollection = XMLItemCollectionAdapter.putItemCollection(workitem);
XMLDocument xmlItemCollection = XMLDocumentAdapter.getDocument(workitem);

// marshal the Object into an XML Stream....
StringWriter writer = new StringWriter();
JAXBContext context = JAXBContext.newInstance(XMLItemCollection.class);
JAXBContext context = JAXBContext.newInstance(XMLDocument.class);
Marshaller m = context.createMarshaller();
m.marshal(xmlItemCollection, writer);
String xmlData=writer.toString();
Expand Down Expand Up @@ -125,9 +126,9 @@ public void readTestWebHDFS() {
HDFSClient hdfsClient=new HDFSClient("root");
//String uri="http://my-hadoop-cluster.local:50070/webhdfs/v1/2017/06/test?op=CREATE&overwrite=true";
try {
DocumentCollection doc = null; //hdfsClient.readData("test/testxxxx2111abc.txt");
XMLDataCollection doc = null; //hdfsClient.readData("test/testxxxx2111abc.txt");

List<ItemCollection> rescol = XMLItemCollectionAdapter.getCollection(doc);
List<ItemCollection> rescol = XMLDataCollectionAdapter.putDataCollection(doc);
workitem=rescol.get(0);

Assert.assertNotNull(workitem);
Expand Down

0 comments on commit 0085b47

Please sign in to comment.