sherlock-lin opened a new pull request, #4518:
URL: https://github.com/apache/bookkeeper/pull/4518

   <!-- or this PR is one task of an issue -->
   Main Issue: #4322
   
   ### 1. why parameterized beforeEach 
     Because the current version of Junit 5 does not support class-level 
parameterized, [related 
links](https://github.com/junit-team/junit5/issues/878),We can achieve the same 
effect by beforeEach。
   
   ### 2. Short-term solutions(this pr)
      Refer to this 
[post](https://code-case.hashnode.dev/how-to-pass-parameterized-test-parameters-to-beforeeachaftereach-method-in-junit5)
 custom ParameterResolver and beforeEach implementations class-level 
parameterized
   
   ### 3. Long-term solutions
     Keep up with the Junit5 community, and when Junit5 supports class-level 
parameterized, go with the official Junit5 way!
     
   
   ### Test results
   <img width="766" alt="image" 
src="https://github.com/user-attachments/assets/f465bf01-26a8-49b3-be47-1f5d19e69268";>
   
   
   <img width="766" alt="image" 
src="https://github.com/user-attachments/assets/0b73f3aa-d57b-476e-9c28-3eb710426d69";>
   


-- 
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