Skip to content

Refactor JUnit 5 for BaseTestAESCopySafe and BaseTestAESGCMLong tests#1233

Open
Mohit-Rajbhar100698 wants to merge 1 commit intoIBM:mainfrom
Mohit-Rajbhar100698:mohit/junit5-basetestaescopysafe-gcmlong
Open

Refactor JUnit 5 for BaseTestAESCopySafe and BaseTestAESGCMLong tests#1233
Mohit-Rajbhar100698 wants to merge 1 commit intoIBM:mainfrom
Mohit-Rajbhar100698:mohit/junit5-basetestaescopysafe-gcmlong

Conversation

@Mohit-Rajbhar100698
Copy link
Collaborator

This change consolidates the tests previously associated with BaseTestAESCopySafe into the parameterized TestAESCopySafe class, and the tests from BaseTestAESGCMLong into the parameterized TestAESGCMLong class.

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

@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the mohit/junit5-basetestaescopysafe-gcmlong branch from 9704faa to 1ec2316 Compare February 26, 2026 06:13
This change consolidates the tests previously associated with BaseTestAESCopySafe into the parameterized TestAESCopySafe class, and the tests from BaseTestAESGCMLong into the parameterized TestAESGCMLong class.

Fixes: https://github.ibm.com/runtimes/jit-crypto/issues/1097

Signed-off-by: Mohit Rajbhar <mohit.rajbhar@ibm.com>
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the mohit/junit5-basetestaescopysafe-gcmlong branch from 1ec2316 to e94765a Compare February 26, 2026 16:43

package ibm.jceplus.junit.tests;

public class BaseUtils {
Copy link
Member

Choose a reason for hiding this comment

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

I think the class should be named TestUtils, since the Test* classes will be using it now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we change the class name to TestUtils, we’ll have to update it everywhere, wherever BaseUtils(to TestUtils) is used, which means a lot of small changes going further in test classes.

Also, this class is just for utility methods, not an actual test class, so if we keep current name changes can be less.
As we are using same name for BaseTestCipher

But if everyone agrees, I’m okay with renaming it.

Copy link
Member

Choose a reason for hiding this comment

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

I do agree that the name TestUtils seems better but I think you make a good point here Mohit that doing this will pollute the clean migration we are trying to do ( as clean as we can ). For now seems like it would be easier to create a new BaseUtils class then we can rename this class after everything is converted to make it TestUtils.

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.

3 participants