Skip to content

Refactor JUnit 5 for BaseTestAESCCMInteropBC and BaseTestAESGCMUpdateInteropBC tests - #1659

Open
Mohit-Rajbhar100698 wants to merge 1 commit into
IBM:mainfrom
Mohit-Rajbhar100698:refactor/aes-interop-junit5
Open

Refactor JUnit 5 for BaseTestAESCCMInteropBC and BaseTestAESGCMUpdateInteropBC tests#1659
Mohit-Rajbhar100698 wants to merge 1 commit into
IBM:mainfrom
Mohit-Rajbhar100698:refactor/aes-interop-junit5

Conversation

@Mohit-Rajbhar100698

Copy link
Copy Markdown
Collaborator

This change converts these tests to use JUnit 5 parameterized tests.

  • Convert BaseTestAESCCMInteropBC to a JUnit 5 parameterized test
  • Convert BaseTestAESGCMUpdateInteropBC to a JUnit 5 parameterized test
  • Remove the provider-specific wrapper test classes
  • Update TestAll.java to remove references to the deleted test classes
  • Add a new argument source method in TestArguments.java for the BC provider interoperability tests.

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

Comment thread src/test/java/ibm/jceplus/junit/tests/TestAESCCMInteropBC.java Outdated
Comment thread src/test/java/ibm/jceplus/junit/tests/TestAESCCMInteropBC.java
import static org.junit.jupiter.api.Assertions.assertTrue;

public class BaseTestAESGCMUpdateInteropBC extends BaseTestJunit5Interop {
@Tag(Tags.OPENJCEPLUS_NAME)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This test was previously being run for FIPS provider. Any reason it is not tagged with the fips provider?

I did confirm in the logs that TestAESGCMUpdateInteropBC is only running for OpenJCEPlus not OpenJCEPlusFIPS, for example:

TestAll TestAESGCMUpdateInteropBC [1] provider=OpenJCEPlus, interopProvider=BC

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

And this test previously was running only for OpenJCEplus
image

and I tried running with OpenJCEPlusFIPS tags and it ran successfully , should I add OpenJCEPlusFIPS tag also for this test ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes please add this for FIPS as the test is applicable since AES/GCM is supported by fips provider.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Added tag for FIPS

@Mohit-Rajbhar100698
Mohit-Rajbhar100698 force-pushed the refactor/aes-interop-junit5 branch from 1ed7846 to 7a8b96e Compare July 27, 2026 09:53
@Mohit-Rajbhar100698
Mohit-Rajbhar100698 force-pushed the refactor/aes-interop-junit5 branch 2 times, most recently from a2fbddf to e28f545 Compare July 28, 2026 15:21
@Mohit-Rajbhar100698
Mohit-Rajbhar100698 force-pushed the refactor/aes-interop-junit5 branch 2 times, most recently from 514a3c7 to eafda27 Compare August 18, 2026 07:00
…InteropBC tests

This change converts these tests to use JUnit 5 parameterized tests.
- Convert BaseTestAESCCMInteropBC to a JUnit 5 parameterized test
- Convert BaseTestAESGCMUpdateInteropBC to a JUnit 5 parameterized test
- Remove the provider-specific wrapper test classes
- Update TestAll.java to remove references to the deleted test classes
- Add a new argument source method in TestArguments.java for the BC provider interoperability tests.

Signed-off-by: Mohit Rajbhar <mohit.rajbhar@ibm.com>
@Mohit-Rajbhar100698
Mohit-Rajbhar100698 force-pushed the refactor/aes-interop-junit5 branch from eafda27 to 56117dc Compare August 18, 2026 07:40

@KostasTsiounis KostasTsiounis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

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.

4 participants