Skip to content

Commit 1f433c3

Browse files
axherrmwelschsn
authored andcommitted
fix test
1 parent 8f5c8e8 commit 1f433c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/test/java/TestPDFMatcher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ void testSignedPDFs(final String urlString, final int expectedSignatureCount, fi
167167
@ParameterizedTest
168168
@CsvFileSource(resources = "/pdf/contains-text.csv", numLinesToSkip = 1)
169169
void testContainsText(final String filePath, final boolean expected, final String language) throws IOException {
170+
System.setProperty(PDFMatcher.class.getName() + ".languageCheck", "true");
170171
System.setProperty(PDFMatcher.class.getName() + ".lookForText", "true");
171172
Map<String, Object> result = ANALYZER.analyze(new File(filePath));
172173
assertNotNull(result);
@@ -187,6 +188,7 @@ void testContainsText(final String filePath, final boolean expected, final Strin
187188
}
188189
assertTrue(pdfDetails.containsKey(PDFMatcher.TEXT_LANGUAGE_CONFIDENCE_VALUES));
189190
}
191+
System.clearProperty(PDFMatcher.class.getName() + ".languageCheck");
190192
System.clearProperty(PDFMatcher.class.getName() + ".lookForText");
191193
}
192194

0 commit comments

Comments
 (0)