[TIKA-4704] Implement tearDown method to remove temp directories#2735
[TIKA-4704] Implement tearDown method to remove temp directories#2735
Conversation
Add tearDown method to clean up temporary directory after tests.
Add tearDown method to clean up temporary directory after tests.
There was a problem hiding this comment.
Pull request overview
This PR aims to prevent test pollution by cleaning up the temporary unpack-emitter directory created by UnpackerResourceTest after the test suite finishes.
Changes:
- Added a JUnit
@AfterAllteardown method to delete the temp directory used by unpack emitter tests.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
Outdated
Show resolved
Hide resolved
...tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
Outdated
Show resolved
Hide resolved
…/server/standard/UnpackerResourceTest.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...r-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceWithConfigTest.java
Outdated
Show resolved
Hide resolved
...tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
Outdated
Show resolved
Hide resolved
...r-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceWithConfigTest.java
Outdated
Show resolved
Hide resolved
…/server/standard/UnpackerResourceWithConfigTest.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/server/standard/UnpackerResourceTest.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/server/standard/UnpackerResourceWithConfigTest.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...r-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceWithConfigTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...r-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceWithConfigTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
Outdated
Show resolved
Hide resolved
...tika-server-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceTest.java
Show resolved
Hide resolved
...r-standard/src/test/java/org/apache/tika/server/standard/UnpackerResourceWithConfigTest.java
Show resolved
Hide resolved
…/server/standard/UnpackerResourceTest.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add tearDown method to clean up temporary directory after tests.
Thanks for your contribution to Apache Tika! Your help is appreciated!
Before opening the pull request, please verify that
TIKA-XXXX)[TIKA-XXXX] Issue or pull request title)./mvnw clean testmainbranch. If there are conflicts, please try to rebase the pull request branch on top of a freshly pulledmainbranchtika-bom/pom.xml.We will be able to faster integrate your pull request if these conditions are met. If you have any questions how to fix your problem or about using Tika in general, please sign up for the Tika mailing list. Thanks!