The GitHub Actions job "Java CI" on commons-vfs.git/feature/junit5-migration 
has failed.
Run started by GitHub user gnodet (triggered by gnodet).

Head commit for run:
e157a12ca18ba4b7f7ab1a51ff24bce8f483bf03 / Guillaume Nodet <[email protected]>
Add JUnit 4 as test dependency for HDFS module

The HDFS module requires JUnit 4 because Hadoop's test utilities
(GenericTestUtils, MiniDFSCluster) are built with JUnit 4 and require
org.junit.Assert to be on the classpath.

Changes:
- Added junit:junit:4.13.2 as a test dependency for commons-vfs2-hdfs
- Removed JUnit 4 exclusions from Hadoop dependencies (they're needed)
- This allows both JUnit 4 and JUnit 5 to coexist in the HDFS module

The HDFS module tests are written in JUnit 5, but they use Hadoop's
test infrastructure which requires JUnit 4. This is a valid use case
for having both JUnit versions in the same module.

Note: The HDFS tests still fail with UnsupportedOperationException
related to getSubject() when running on Java 26. This is a pre-existing
Hadoop/Java compatibility issue unrelated to the JUnit migration.

Report URL: https://github.com/apache/commons-vfs/actions/runs/18316443465

With regards,
GitHub Actions via GitBox

Reply via email to