This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_3x by this push:
     new f9ac02d87 fix unit tests for 3.x
f9ac02d87 is described below

commit f9ac02d870d9bf6235f6fff0d90c10e1db878963
Author: tallison <[email protected]>
AuthorDate: Wed Feb 26 13:16:18 2025 -0500

    fix unit tests for 3.x
---
 .../apache/tika/parser/microsoft/OutlookParserTest.java    | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git 
a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/OutlookParserTest.java
 
b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/OutlookParserTest.java
index 84ec3ccc3..d055fe6cd 100644
--- 
a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/OutlookParserTest.java
+++ 
b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/test/java/org/apache/tika/parser/microsoft/OutlookParserTest.java
@@ -346,7 +346,12 @@ public class OutlookParserTest extends TikaTest {
 
     @Test
     public void testContactExtendedMetadata() throws Exception {
-        List<Metadata> metadataList = 
getRecursiveMetadata("testMSG_Contact.msg");
+        OfficeParserConfig officeParserConfig = new OfficeParserConfig();
+        officeParserConfig.setExtractExtendedMsgProperties(true);
+        ParseContext parseContext = new ParseContext();
+        parseContext.set(OfficeParserConfig.class, officeParserConfig);
+
+        List<Metadata> metadataList = 
getRecursiveMetadata("testMSG_Contact.msg", parseContext);
         Metadata m = metadataList.get(0);
         assertEquals("2017-02-28T18:41:37Z", 
m.get("mapi:property:PidLidValidFlagStringProof"));
     }
@@ -354,7 +359,12 @@ public class OutlookParserTest extends TikaTest {
 
     @Test
     public void testPostExtendedMetadata() throws Exception {
-        List<Metadata> metadataList = getRecursiveMetadata("testMSG_Post.msg");
+        OfficeParserConfig officeParserConfig = new OfficeParserConfig();
+        officeParserConfig.setExtractExtendedMsgProperties(true);
+        ParseContext parseContext = new ParseContext();
+        parseContext.set(OfficeParserConfig.class, officeParserConfig);
+
+        List<Metadata> metadataList = getRecursiveMetadata("testMSG_Post.msg", 
parseContext);
         Metadata m = metadataList.get(0);
         assertEquals("2017-02-28T18:47:11Z", 
m.get("mapi:property:PidLidValidFlagStringProof"));
     }

Reply via email to