Repository navigation
[SHRINKWRAP-541] Updating jUnit from 4 to jUnit 5 - #172
Merged
Merged
Conversation
khermano
force-pushed
the
SHRINKWRAP-541_from_main
branch
from
August 6, 2024 14:24
9462d05 to
9087baf
Compare
petrberan
reviewed
Aug 7, 2024
|
|
||
| <!-- Versions of test dependencies --> | ||
| <version.junit>4.13.2</version.junit> | ||
| <version.org.junit-jupiter>5.11.0-M2</version.org.junit-jupiter> |
Member
There was a problem hiding this comment.
Not sure we want to use M2 versions here
petrberan
reviewed
Aug 7, 2024
| try { | ||
| new ClassAsset(null); | ||
| Assert.fail("Should have thrown IllegalArgumentException"); | ||
| Assertions.fail("Should have thrown IllegalArgumentException"); |
petrberan
reviewed
Aug 7, 2024
| * | ||
| * SHRINKWRAP-233, SHRINKWRAP-302 | ||
| * | ||
| * DISABLED - After replacing JUnit 4 with JUnit 5 the test is failing - size of archive should be 3 but is 4 |
Member
There was a problem hiding this comment.
Do we have an issue filed for that?
Contributor
Author
There was a problem hiding this comment.
Yes, the issue already exists. I will add it to the comment, too, so it's clearer where to find it. It's this one: https://issues.redhat.com/browse/SHRINKWRAP-543. It's also linked to the JIRA.
petrberan
reviewed
Aug 7, 2024
| final File nonZipFile = new File(TestSecurityActions.getThreadContextClassLoader() | ||
| .getResource(NAME_FILE_NON_ZIP).toURI()); | ||
| ShrinkWrap.createFromZipFile(JavaArchive.class, nonZipFile); | ||
| InputStream inputStream = TestSecurityActions.getThreadContextClassLoader() |
Member
There was a problem hiding this comment.
It would be much easier to move the file to this module's resources
Contributor
Author
There was a problem hiding this comment.
That was a quick temporary solution which I missed to repair. Sorry about that.
khermano
force-pushed
the
SHRINKWRAP-541_from_main
branch
from
August 8, 2024 10:52
9087baf to
7c5a591
Compare
This file contains hidden or 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
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.
Issue: https://issues.redhat.com/browse/SHRINKWRAP-541