code formatting

This commit is contained in:
Claudio Atzori 2024-06-06 09:25:26 +02:00
parent 91b49366c6
commit efc1632e16
2 changed files with 7 additions and 8 deletions

View File

@ -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();
} }

View File

@ -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);