DomGarguilo opened a new pull request #2564:
URL: https://github.com/apache/accumulo/pull/2564


   This PR converts the `server-base` module from JUnit4 to JUnit5 Jupiter. 
This module was fairly straight forward to convert and was mostly just syntax 
changes. All tests that were changed, still pass.
   
   Part of #2441 
   
   Notes for reviewers:
   
   > 
   > Here are some quick notes that might help to reference for those who work 
on the migration or for reviewers.
   > 
   > | JUnit4  | JUnit5  |
   > | ----------- | ----------- |
   > | `@Test` | `@Test` |
   > | `@Before` | `@BeforeEach` |
   > | `@After` | `@AfterEach` |
   > | `@BeforeClass` | `@BeforeAll` |
   > | `@AfterClass` | `AfterAll` |
   > | `@Ignore` | `@Disable` |
   > | `@Category` | `@Tag` |
   > 
   > | | JUnit4  | JUnit5  |
   > | ----------- | ----------- | ----------- |
   > | Testing class package | `org.junit` | `org.junit.jupiter.api` |
   > | Assertions class | `Assert` | `Assertions` |
   > 
   > `TemporaryFolder` was removed and instead a `File` or `Path` is used in 
JUnit5 with the `@TempDir` annotation.
   > 
   > Additionally, the order of parameters in assert statements has changed. 
The optional message is now the last parameter rather than the first parameter. 
e.g. `assertTrue("should be equal", 1==3)` becomes `assertTrue(1==3, "should be 
equal")`
   
   _Originally posted by @DomGarguilo in 
https://github.com/apache/accumulo/issues/2441#issuecomment-1041908425_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to