Permalink
Browse files

fixed issue with namespace in example

  • Loading branch information...
1 parent 9413e49 commit cceea50c51c156eafaf62c9098ca201ff61b8239 @lucmoreau committed Apr 22, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 prov-dot/src/test/java/org/openprovenance/prov/dot/SculptureTest.java
View
3 prov-dot/src/test/java/org/openprovenance/prov/dot/SculptureTest.java
@@ -1,5 +1,6 @@
package org.openprovenance.prov.dot;
import junit.framework.TestCase;
+import org.openprovenance.prov.model.Namespace;
import org.openprovenance.prov.xml.Document;
import org.openprovenance.prov.xml.ProvFactory;
import org.openprovenance.prov.xml.ProvSerialiser;
@@ -18,6 +19,8 @@ public void sculptureToDot(String asnFile, String xmlFile, String dotFile, Strin
Document o= (Document) u.convertASNToJavaBean(asnFile,pFactory);
+ Namespace.withThreadNamespace(o.getNamespace());
+
ProvSerialiser serial=ProvSerialiser.getThreadProvSerialiser();
serial.serialiseDocument(new File(xmlFile),o,true);

0 comments on commit cceea50

Please sign in to comment.