Skip to content

Commit

Permalink
'#1503: update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed May 27, 2024
1 parent 96ab3fd commit b33d5dc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void testUsnJrnlParsingHTML() throws IOException, SAXException, TikaExcep
reasons = metadata.getValues("Reasons");
for (String reason : reasons) {
date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + ":" + reason));
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + reason));
if (getVersion() < 9)
assertEquals("20/05/2021 14:52:07", df.format(date));
if (getVersion() >= 9 && getVersion() < 12)
Expand All @@ -79,7 +79,7 @@ public void testUsnJrnlParsingHTML() throws IOException, SAXException, TikaExcep
reasons = metadata.getValues("Reasons");
for (String reason : reasons) {
date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + ":" + reason));
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + reason));
if (getVersion() < 9)
assertEquals("20/05/2021 14:55:03", df.format(date));
if (getVersion() >= 9 && getVersion() < 12)
Expand Down Expand Up @@ -129,7 +129,7 @@ public void testUsnJrnlParsingCSV() throws IOException, SAXException, TikaExcept
reasons = metadata.getValues("Reasons");
for (String reason : reasons) {
date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + ":" + reason));
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + reason));
if (getVersion() < 9)
assertEquals("20/05/2021 14:52:07", df.format(date));
if (getVersion() >= 9 && getVersion() < 12)
Expand All @@ -144,7 +144,7 @@ public void testUsnJrnlParsingCSV() throws IOException, SAXException, TikaExcept
reasons = metadata.getValues("Reasons");
for (String reason : reasons) {
date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + ":" + reason));
.parse(metadata.get(UsnJrnlParser.USN_REASON_PREFIX + reason));
if (getVersion() < 9)
assertEquals("20/05/2021 14:55:03", df.format(date));
if (getVersion() >= 9 && getVersion() < 12)
Expand Down

0 comments on commit b33d5dc

Please sign in to comment.