-
Notifications
You must be signed in to change notification settings - Fork 31
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
Convert test suite to Junit5 #288
Open
WolfgangHG
wants to merge
15
commits into
arquillian:main
Choose a base branch
from
WolfgangHG:junit5
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
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
…those tests to a new project
Bumps [org.apache.logging.log4j:log4j-bom](https://github.com/apache/logging-log4j2) from 2.24.2 to 2.24.3. - [Release notes](https://github.com/apache/logging-log4j2/releases) - [Changelog](https://github.com/apache/logging-log4j2/blob/2.x/RELEASE-NOTES.adoc) - [Commits](apache/logging-log4j2@rel/2.24.2...rel/2.24.3) --- updated-dependencies: - dependency-name: org.apache.logging.log4j:log4j-bom dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [org.apache.httpcomponents.core5:httpcore5](https://github.com/apache/httpcomponents-core) from 5.3.1 to 5.3.2. - [Changelog](https://github.com/apache/httpcomponents-core/blob/rel/v5.3.2/RELEASE_NOTES.txt) - [Commits](apache/httpcomponents-core@rel/v5.3.1...rel/v5.3.2) --- updated-dependencies: - dependency-name: org.apache.httpcomponents.core5:httpcore5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito) from 5.14.2 to 5.15.2. - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.14.2...v5.15.2) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps org.apache.tomee:arquillian-tomee-remote from 10.0.0-M3 to 10.0.0. --- updated-dependencies: - dependency-name: org.apache.tomee:arquillian-tomee-remote dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
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.
This pull request converts the test suite to JUnit 5 and resolves #220
I fear it is not mergeable, I did something wrong when rebasing. I did a "git pull --rebase upstream main" and then "git push origin --force" (as you suggested some time ago), and after resolving some merge conflicts, github tells me "This branch is 11 commits ahead of, 13 commits behind arquillian/arquillian-extension-warp:main.". So If it s not mergeable, I will create a new pull request.
Main changes:
org.jboss.arquillian.warp.impl.testutils.SeparatedClassloaderRunner
does not work with JUnit 5, so I followed the suggestion from Separate ClassLoader per test junit-team/junit5#4203 and added aSeparatedClassloaderExtension
and aLauncherSessionListener
implementation. Due to conflicts with other tests tampering with the classloader, I extracted all @SeparatedClassPath tests to an extra module "impl_test_separatecl".@RunWith(MockitoJUnitRunner.class)
have to be converted to@ExtendWith(MockitoExtension.class)
, which seems to behave differently when checking stubbings in@BeforeEach
methods (access to stubbed objects seems to be evaluated per test method, while it was before checked per test class), so I added severallenient()
calls.