-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests to use Junit 5 #252
Open
jasonkatonica
wants to merge
1
commit into
IBM:main
Choose a base branch
from
jasonkatonica:katonica/feature/migratetojunit5
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update tests to use Junit 5 #252
jasonkatonica
wants to merge
1
commit into
IBM:main
from
jasonkatonica:katonica/feature/migratetojunit5
+7,073
−17,863
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
from
October 11, 2024 17:55
82c68a2
to
d9f8b81
Compare
jasonkatonica
requested review from
taoliult,
KostasTsiounis,
johnpeck-us-ibm and
JinhangZhang
October 11, 2024 19:00
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
from
October 14, 2024 12:02
d9f8b81
to
3235a02
Compare
johnpeck-us-ibm
approved these changes
Oct 17, 2024
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
from
October 21, 2024 13:43
3235a02
to
9700266
Compare
Rebased on latest |
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
2 times, most recently
from
October 23, 2024 18:03
a6a0dcb
to
21ba67f
Compare
Rebased on latest main branch. |
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
from
October 24, 2024 14:05
21ba67f
to
ed647e9
Compare
Rebased on latest |
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
from
October 30, 2024 13:23
ed647e9
to
381e16e
Compare
Rebased on latest code. |
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
4 times, most recently
from
November 9, 2024 00:34
bb3f12e
to
8260be2
Compare
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
from
November 11, 2024 21:07
8260be2
to
8a27e08
Compare
Tests have been updated to use Junit5. Changes made include: - Removing the `junit-vintage-engine` dependency. This is no longer in use given all tests now make use of Junit 5. - Tests are sorted by alphabetical in test suites. - Tests no longer need to extend `junit.framework.TestCase`. - Tests are explicitly declared with the `@Test` annotation. - Test constructors have been removed. Arguments to the base tests are now sent using getters and setters. This is typically only used for setting providers, algorithms, or key sizes in tests. - Various `main()` methods of tests were removed as they are no longer in use. Tests can be run using various Junit 5 test execution tools such as IDEs, command line tools, and `mvn` surefire which is already in place in this project. - `BaseTest` was removed as it is no longer in use and represents a Junit 3 test. A new `BaseTestJunit5` test has been created to represent the new base for the test hierarchy. - The concept of warming up a test has been removed from a few locations. Tests are not expected to act as performance tests. - Copyrights were updated. - Various empty comment blocks were removed. - Some tests were not executing using the expected provider since the incorrect `Utils` class was in use. This was corrected to use the correct class. - Tests `TestAESGCM_192`, `TestAESGCM_256`, and `TestRSA_4096` were added to the `OpenJCEPlus` and `OpenJCEPlusFIPS` provider test suites. - Tests `TestECDHInteropBC`, `TestRSATypeCheckEnabled`, `TestAES_192`, and `TestAES_256` were added to the `OpenJCEPlus` provider test suite - Tests `TestAES_192` and `TestAES_256` were removed from the `TestMultithreadFIPS` since these tests take a long period of time to complete. Coverage functionally is still maintained since they are executed as part of the `OpenJCEPlusFIPS` provider tests. - Increased timeouts associated with tests `TestMultithreadFIPS` and `TestMultithread`. Signed-off-by: Jason Katonica <katonica@us.ibm.com>
jasonkatonica
force-pushed
the
katonica/feature/migratetojunit5
branch
from
November 14, 2024 21:41
8a27e08
to
99241c4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tests have been updated to use Junit5. Changes made include:
junit-vintage-engine
dependency. This is no longer in use given all tests now make use of Junit 5.junit.framework.TestCase
.@Test
annotation.main()
methods of tests were removed as they are no longer in use. Tests can be run using various Junit 5 test execution tools such as IDEs, command line tools, andmvn
surefire which is already in place in this project.BaseTest
was removed as it is no longer in use and represents a Junit 3 test. A newBaseTestJunit5
test has been created to represent the new base for the test hierarchy.Utils
class was in use. This was corrected to use the correct class.TestAESGCM_192
,TestAESGCM_256
, andTestRSA_4096
were added to theOpenJCEPlus
andOpenJCEPlusFIPS
provider test suites.TestECDHInteropBC
,TestRSATypeCheckEnabled
,TestAES_192
, andTestAES_256
were added to theOpenJCEPlus
provider test suiteTestAES_192
andTestAES_256
were removed from theTestMultithreadFIPS
since these tests take a long period of time to complete. Coverage functionally is still maintained since they are executed as part of theOpenJCEPlusFIPS
provider tests.TestMultithreadFIPS
andTestMultithread
.