code formatting
This commit is contained in:
parent
91b49366c6
commit
efc1632e16
|
@ -176,13 +176,13 @@ public class XmlSerializationUtils {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
for (KeyValue kv : measure.getUnit()) {
|
for (KeyValue kv : measure.getUnit()) {
|
||||||
sb
|
sb
|
||||||
.append("<")
|
.append("<")
|
||||||
.append(name)
|
.append(name)
|
||||||
.append(" ")
|
.append(" ")
|
||||||
.append(attr("id", measure.getId()))
|
.append(attr("id", measure.getId()))
|
||||||
.append(attr("count", kv.getValue()))
|
.append(attr("count", kv.getValue()))
|
||||||
.append(attr("datasource", kv.getKey()))
|
.append(attr("datasource", kv.getKey()))
|
||||||
.append(" />");
|
.append(" />");
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ public class XmlRecordFactoryTest {
|
||||||
final Publication p = OBJECT_MAPPER
|
final Publication p = OBJECT_MAPPER
|
||||||
.readValue(IOUtils.toString(getClass().getResourceAsStream("publication.json")), Publication.class);
|
.readValue(IOUtils.toString(getClass().getResourceAsStream("publication.json")), Publication.class);
|
||||||
|
|
||||||
|
|
||||||
final String xml = xmlRecordFactory.build(new JoinedEntity(p));
|
final String xml = xmlRecordFactory.build(new JoinedEntity(p));
|
||||||
|
|
||||||
assertNotNull(xml);
|
assertNotNull(xml);
|
||||||
|
|
Loading…
Reference in New Issue