Skip to content

Refactor JUnit 5 tests consolidate BaseTestRSA#1194

Open
Mohit-Rajbhar100698 wants to merge 1 commit intoIBM:mainfrom
Mohit-Rajbhar100698:mohit-rajbhar/junit5-BaseTestRSA-consolidation
Open

Refactor JUnit 5 tests consolidate BaseTestRSA#1194
Mohit-Rajbhar100698 wants to merge 1 commit intoIBM:mainfrom
Mohit-Rajbhar100698:mohit-rajbhar/junit5-BaseTestRSA-consolidation

Conversation

@Mohit-Rajbhar100698
Copy link
Collaborator

This change consolidates various tests associated with the former BaseTestRSA into a single parameterized test.

Signed-off-by: Mohit Rajbhar mohit.rajbhar@ibm.com

@jasonkatonica
Copy link
Member

We did talk about this update some and found the runtimes for the test buckets increased by ~4x. Some additional work here to only run 2048 base keys for multi-thread is being tried.

@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the mohit-rajbhar/junit5-BaseTestRSA-consolidation branch 2 times, most recently from 22b8ad7 to 87c6137 Compare February 24, 2026 11:00
@Mohit-Rajbhar100698
Copy link
Collaborator Author

Since a @MethodSource cannot be overridden using inheritance, we cannot simply extend TestRSA and change the method source to run only the 2048 key size. I created two separate test classes. One class runs all RSA key sizes except 2048, and the other class runs only the 2048 key size for multithread testing. Both classes extend the same base test class (TestRSA), which contains all the common setup and tests.

@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the mohit-rajbhar/junit5-BaseTestRSA-consolidation branch 2 times, most recently from 63b847a to 582ec67 Compare February 27, 2026 12:34
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the mohit-rajbhar/junit5-BaseTestRSA-consolidation branch from 582ec67 to c96af63 Compare March 2, 2026 06:13
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the mohit-rajbhar/junit5-BaseTestRSA-consolidation branch from c96af63 to 64f8449 Compare March 5, 2026 10:23
Copy link
Member

@jasonkatonica jasonkatonica left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This change consolidates various tests associated with the former BaseTestRSA into a single parameterized test.

Signed-off-by: Mohit Rajbhar <mohit.rajbhar@ibm.com>
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the mohit-rajbhar/junit5-BaseTestRSA-consolidation branch from 64f8449 to acb856b Compare March 5, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants