You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/10/17 20:39:32 UTC
[maven-resolver] 01/01: Testcase
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch MNG-6678
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git
commit 7923250633fa9ff187412a697cf855a1e56983ea
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Sat Oct 17 22:39:15 2020 +0200
Testcase
---
.../org/eclipse/aether/util/version/GenericVersionRangeTest.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/maven-resolver-util/src/test/java/org/eclipse/aether/util/version/GenericVersionRangeTest.java b/maven-resolver-util/src/test/java/org/eclipse/aether/util/version/GenericVersionRangeTest.java
index 08e9bce..e3dcd30 100644
--- a/maven-resolver-util/src/test/java/org/eclipse/aether/util/version/GenericVersionRangeTest.java
+++ b/maven-resolver-util/src/test/java/org/eclipse/aether/util/version/GenericVersionRangeTest.java
@@ -8,9 +8,9 @@ package org.eclipse.aether.util.version;
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -119,6 +119,10 @@ public class GenericVersionRangeTest
range = parseValid( "[1,1]" );
assertContains( range, "1" );
assertEquals( range, parseValid( range.toString() ) );
+
+ range = parseValid( "[0.0.1-20201017.193515-1]" );
+ assertContains( range, "0.0.1-SNAPSHOT" );
+ assertEquals( range, parseValid( range.toString() ) );
}
@Test