|
|
@ -7,6 +7,8 @@ import java.io.IOException;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.AssertTrue;
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
|
import org.dom4j.Document;
|
|
|
|
import org.dom4j.Document;
|
|
|
|
import org.dom4j.DocumentException;
|
|
|
|
import org.dom4j.DocumentException;
|
|
|
@ -150,6 +152,8 @@ public class XmlRecordFactoryTest {
|
|
|
|
Dataset d = OBJECT_MAPPER
|
|
|
|
Dataset d = OBJECT_MAPPER
|
|
|
|
.readValue(IOUtils.toString(getClass().getResourceAsStream("enermaps.json")), Dataset.class);
|
|
|
|
.readValue(IOUtils.toString(getClass().getResourceAsStream("enermaps.json")), Dataset.class);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assertNotNull(d.getInstance().get(0).getLicense().getValue());
|
|
|
|
|
|
|
|
|
|
|
|
JoinedEntity je = new JoinedEntity<>(d);
|
|
|
|
JoinedEntity je = new JoinedEntity<>(d);
|
|
|
|
|
|
|
|
|
|
|
|
String xml = xmlRecordFactory.build(je);
|
|
|
|
String xml = xmlRecordFactory.build(je);
|
|
|
|