Skip to content

Convert Diffie-Hellman Key tests to JUnit 5 parameterized tests - #1745

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

Convert Diffie-Hellman Key tests to JUnit 5 parameterized tests#1745
Mohit-Rajbhar100698 wants to merge 1 commit into
IBM:mainfrom
Mohit-Rajbhar100698:refactor/junit5-dh-key-tests

Conversation

@Mohit-Rajbhar100698

Copy link
Copy Markdown
Collaborator

This update convert the existing Diffie-Hellman Key tests into Junit5 parameterized test classes.

Changes:

  • Move BaseTestDH to the ibm.jceplus.junit.tests package as an abstract base test class.
  • Add two classes extending BaseTestDH. One class is used to run tests with the OpenJCEPlus and OpenJCEPlusFIPS providers, and the second concrete class is used to run the multithreaded tests.
  • Convert BaseTestDHInterop.java to the parameterized test class TestDHInteropSunJCE.java.
  • Convert BaseTestDHKeyFactory.java to the parameterized test class TestDHKeyFactory.java.
  • Convert BaseTestDHKeyPairGenerator.java to the parameterized test class TestDHKeyPairGenerator.java.
  • Convert BaseTestDHMultiParty.java to the parameterized test class TestDHMultiParty.java.
  • Remove references to the deleted test classes from openjceplus/TestAll.java and openjceplusfips/TestAll.java.
  • Remove references to the deleted multithreaded test class from junit/TestMultithread.java and junit/TestMultithreadFIPS.java.

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

This update convert the existing Diffie-Hellman Key tests into Junit5 parameterized
test classes.

Changes:

- Move BaseTestDH to the ibm.jceplus.junit.tests package as an
  abstract base test class.
- Add two classes extending BaseTestDH. One class is used to run
  tests with the OpenJCEPlus and OpenJCEPlusFIPS providers, and the
  second concrete class is used to run the multithreaded tests.
- Convert BaseTestDHInterop.java to the parameterized test class
  TestDHInteropSunJCE.java.
- Convert BaseTestDHKeyFactory.java to the parameterized test class
  TestDHKeyFactory.java.
- Convert BaseTestDHKeyPairGenerator.java to the parameterized test
  class TestDHKeyPairGenerator.java.
- Convert BaseTestDHMultiParty.java to the parameterized test class
  TestDHMultiParty.java.
- Remove references to the deleted test classes from
  openjceplus/TestAll.java and openjceplusfips/TestAll.java.
- Remove references to the deleted multithreaded test class from
  junit/TestMultithread.java and junit/TestMultithreadFIPS.java.

Signed-off-by: Mohit Rajbhar <mohit.rajbhar@ibm.com>
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.

1 participant