Skip to content

Refactor JUnit 5 Tests for BaseTestDSASignatureInterop#1468

Open
Mohit-Rajbhar100698 wants to merge 1 commit into
IBM:mainfrom
Mohit-Rajbhar100698:refactor-junit5-BaseTestDSASignatureInterop-tests
Open

Refactor JUnit 5 Tests for BaseTestDSASignatureInterop#1468
Mohit-Rajbhar100698 wants to merge 1 commit into
IBM:mainfrom
Mohit-Rajbhar100698:refactor-junit5-BaseTestDSASignatureInterop-tests

Conversation

@Mohit-Rajbhar100698
Copy link
Copy Markdown
Collaborator

Replace multiple test classes extending BaseTestDSASignatureInterop with a single JUnit 5 parameterized test class

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

@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch from 90700db to edfcd4e Compare May 15, 2026 07:02
Comment thread src/test/java/ibm/jceplus/junit/tests/TestDSASignatureInteropSUN.java Outdated
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch from edfcd4e to 893ded6 Compare May 20, 2026 09:00
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch from 893ded6 to d9a6071 Compare May 21, 2026 17:27
Comment thread src/test/java/ibm/jceplus/junit/tests/TestDSASignatureInterop.java Outdated
Copy link
Copy Markdown
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

@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch 2 times, most recently from 8b658b3 to f650a7d Compare June 3, 2026 10:18
Copy link
Copy Markdown
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

@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch from f650a7d to 4966270 Compare June 4, 2026 10:53
Comment on lines +32 to +41
switch (provider) {
case OpenJCEPlus:
loadProvider(TestProvider.OpenJCEPlus);
break;
case OpenJCEPlusFIPS:
loadProvider(TestProvider.OpenJCEPlusFIPS);
break;
default:
throw new Exception("Provider not supported: " + provider.getProviderName());
}
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.

Should we extract this into a helper method?

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.

ok , we can move this switch statement into a seperate helper method.
Done

}

public void setAndInsertInteropProvider(TestProvider interopProvider) throws Exception {
switch (interopProvider) {
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.

Shouldn't we set the interop provider here with something like this.interopProvider = interopProvider? Since this variable is not available in BaseTest maybe this method belongs to BaseTestInterop.

@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch from 4966270 to 68fef36 Compare June 5, 2026 08:59
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch 2 times, most recently from 16b009d to fc1b4a7 Compare June 5, 2026 17:55
Replace multiple test classes extending BaseTestDSASignatureInterop with a single JUnit 5 parameterized test class

Signed-off-by: Mohit Rajbhar <mohit.rajbhar@ibm.com>
@Mohit-Rajbhar100698 Mohit-Rajbhar100698 force-pushed the refactor-junit5-BaseTestDSASignatureInterop-tests branch from fc1b4a7 to 6a2c9e0 Compare June 5, 2026 17:56
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