Commits


Hyunseok Seo authored and GitHub committed 870b315d4b7
GH-42030: [Java] Update Unit Tests for Adapter Module (#42038) ### Rationale for this change Update package from JUnit 4(`org.junit`) to JUnit 5(`org.junit.jupiter`). ### What changes are included in this PR? - `avro` and `jdbc` module - [x] Replacing `org.junit` with `org.junit.jupiter.api`. - [x] Updating `Assertions.assertXXX` to `assertXXX` using static imports. - [x] Updating annotations such as `@ Before`, `@ After`. - `@ Before` -> `@ BeforeEach` - `@ After` -> `@ AfterEach` - `@ Test` -> `@ Test` with `org.junit.jupiter` - `@ ClassRule` -> `@ TempDir` and `@ BeforeAll` - [x] Updating `Parameterized` test - [x] Doing self review for avro - [x] Dealing with `java.io.IOException: Failed to delete temp directory` on Windows with JDK 11 - [x] Exploring a more effective structure for `ParameterizedTest` in JDBC tests. - [x] Doing self review for jdbc - `orc` module - [x] Reviewing the build method - [x] Updating annotations such as `@ BeforeAll`, `@ Rule`, `@ TemporaryFolder` - [x] Doing self review ### Are these changes tested? Yes, existing tests have passed. ### Are there any user-facing changes? No. * GitHub Issue: #42030 Authored-by: Hyunseok Seo <hsseo0501@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>