-
Notifications
You must be signed in to change notification settings - Fork 907
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
test: migrate client module bookie tests to junit 5 #4359
test: migrate client module bookie tests to junit 5 #4359
Conversation
@shoothzj |
a22f04e
to
ec09b5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I have two advice:
- I think
migrate
might be better thanUpgrade
, WDYT? - As we have many tests, we should point on which part of tests are migrated in PR title. It's better to do like
Migrate All client tests to junit5
, orMigrate xxxx module tests to junit5
That's good advice, I'll make the adjustments! |
@@ -35,6 +37,7 @@ public BookieRecoveryUseIOThreadTest() { | |||
super(1); | |||
} | |||
|
|||
@BeforeEach |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need this annotation, it's already on the base BookKeeperClusterTestCase
Thanks for your contribution, please fix the checkstyle violations. :) |
40a24e9
to
1289978
Compare
1289978
to
44ce835
Compare
ok |
@@ -35,7 +35,8 @@ | |||
import org.apache.bookkeeper.meta.ZkLedgerUnderreplicationManager; | |||
import org.apache.bookkeeper.net.BookieId; | |||
import org.apache.bookkeeper.test.BookKeeperClusterTestCase; | |||
import org.junit.Test; | |||
import org.junit.jupiter.api.Test; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary blank line
@@ -20,8 +20,9 @@ | |||
*/ | |||
package org.apache.bookkeeper.client; | |||
|
|||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.fail; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary blank line
@@ -61,6 +61,7 @@ public class BookieRecoveryTest extends BookKeeperClusterTestCase { | |||
|
|||
// Object used for synchronizing async method calls | |||
class SyncObject { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary blank line
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.jupiter.api.Test; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary blank line
44ce835
to
aee1cd3
Compare
Thanks for your contribution, and welcome to the community. :) |
Glad to join the community. 😃 |
Descriptions of the changes in this PR:
Fix #4322
Main Issue: #4322