Skip to content

Commit f1c492a

Browse files
committed
added unit test for Identify/description element; refs #7254
1 parent 94ba135 commit f1c492a

File tree

1 file changed

+3
-0
lines changed
  • goobi-viewer-connector/src/test/java/io/goobi/viewer/connector/oai/model/formats

1 file changed

+3
-0
lines changed

goobi-viewer-connector/src/test/java/io/goobi/viewer/connector/oai/model/formats/FormatTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ void getIdentifyXML_shouldConstructElementCorrectly() throws Exception {
4848
Assertions.assertEquals("2012-10-10T12:07:32Z", eleIdentify.getChildText("earliestDatestamp", null));
4949
Assertions.assertEquals("transient", eleIdentify.getChildText("deletedRecord", null));
5050
Assertions.assertEquals("YYYY-MM-DDThh:mm:ssZ", eleIdentify.getChildText("granularity", null));
51+
Element eleDescription = eleIdentify.getChild("description", null);
52+
Assertions.assertNotNull(eleDescription);
53+
Assertions.assertEquals("Lorem ipsum dolor sit amet", eleDescription.getChildText("description", Format.DC_NS));
5154
}
5255

5356
/**

0 commit comments

Comments
 (0)