-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
TRUNK-5480: Make ModuleUtil support more version specification format #4611
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -773,4 +773,17 @@ protected File getEmptyJarDestinationFolder() throws IOException { | |
} | ||
return destinationFolder; | ||
} | ||
|
||
@Test | ||
public void matchRequiredVersions_shouldAllowRangedUsingPlusSignVersion() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Couple of thoughts here:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regarding the last recommendation, I hope it doesn't require the complexity that we are avoiding to check all this scenarios. |
||
assertTrue(ModuleUtil.matchRequiredVersions("1.4.3","1+ - 1.8.3")); | ||
assertTrue(ModuleUtil.matchRequiredVersions("1.4.3","1.4+ - 1.8.3")); | ||
assertTrue(ModuleUtil.matchRequiredVersions("1.3.3","1.3.2+ - 1.5.2")); | ||
} | ||
|
||
@Test | ||
public void matchRequiredVersions_shouldRefuseRangedOutOfBoundUsingPlusSignVersion() { | ||
assertFalse(ModuleUtil.matchRequiredVersions("2.0.4","2.2.5+ - 3.19.*")); | ||
assertFalse(ModuleUtil.matchRequiredVersions("5.0.0","2.2.5+ - 3.19.2")); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.