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

tilman pushed a commit to branch TIKA-4704-10
in repository https://gitbox.apache.org/repos/asf/tika.git

commit 8e30c8815f443846013a61fa70e5218946761d65
Author: Tilman Hausherr <[email protected]>
AuthorDate: Sun Apr 5 19:10:15 2026 +0200

    [TIKA-4704] Implement tearDown method in UnpackerResourceTest
    
    Add tearDown method to clean up temporary directory after tests.
---
 .../java/org/apache/tika/server/standard/UnpackerResourceTest.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/tika-server/tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
 
b/tika-server/tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
index 608dfec253..8877f6044b 100644
--- 
a/tika-server/tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
+++ 
b/tika-server/tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
@@ -46,6 +46,7 @@ import org.apache.cxf.jaxrs.ext.multipart.Attachment;
 import org.apache.cxf.jaxrs.ext.multipart.ContentDisposition;
 import org.apache.cxf.jaxrs.ext.multipart.MultipartBody;
 import org.apache.cxf.jaxrs.lifecycle.SingletonResourceProvider;
+import org.junit.jupiter.api.AfterAll;
 import org.junit.jupiter.api.Test;
 
 import org.apache.tika.config.JsonConfigHelper;
@@ -602,4 +603,9 @@ public class UnpackerResourceTest extends CXFTestBase {
         assertEquals(200, response.getStatus());
         // Just verify it succeeds - actual depth limiting behavior depends on 
document structure
     }
+    
+    @AfterAll
+    public void tearDown() throws IOException {
+        Files.delete(unpackTempDir);
+    }
 }

Reply via email to