Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] Update Unit Tests for Flight Module #42045

Closed
Tracked by #41680
llama90 opened this issue Jun 9, 2024 · 2 comments
Closed
Tracked by #41680

[Java] Update Unit Tests for Flight Module #42045

llama90 opened this issue Jun 9, 2024 · 2 comments

Comments

@llama90
Copy link
Contributor

llama90 commented Jun 9, 2024

Describe the enhancement requested

This is a sub-issue of the issue below.

The unit tests should use the org.junit.jupiter.api package. This issue deals with the flight module.

Component(s)

Java

lidavidm pushed a commit that referenced this issue Jun 19, 2024
### Rationale for this change

Update package from JUnit 4(`org.junit`) to JUnit 5(`org.junit.jupiter`).

### What changes are included in this PR?

- **common** for all module
  - Step 1. Replacing `org.junit` with `org.junit.jupiter.api`
  - Step 2. Updating `Assertions.assertXXX` to `assertXXX` using static imports
- `flight-core`
  - [x] Updating common
  - [x] Updating annotations
  - [x] Doing self review
- `flight-integration-tests` - nothing to change
- `flight-sql`
  - [x] Updating common 
  - [x] Doing self review
- `flight-sql-jdbc-core`
  - [x] Updating common
  - [x] Updating annotations
    - Adding annotations different from before:
      - `ErrorCollection`
      - `TestRule` for `FlightServerTestExtension` and `RootAllocatorExtension`
      - `ExpectedException`
  - [x] Doing self review
- `flight-sql-jdbc-driver`
  - [x] Updating common
  - [x] Updating annotations 
  - [x] Doing self review

### Are these changes tested?

Yes, existing tests have passed.

### Are there any user-facing changes?

No.

* GitHub Issue: #42045

Authored-by: Hyunseok Seo <[email protected]>
Signed-off-by: David Li <[email protected]>
@llama90
Copy link
Contributor Author

llama90 commented Jun 19, 2024

Issue resolved by pull request 42158
#42158

@llama90 llama90 closed this as completed Jun 19, 2024
@lidavidm lidavidm added this to the 17.0.0 milestone Jun 19, 2024
@lidavidm
Copy link
Member

Issue resolved by pull request 42158
#42158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants