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 2019/07/08 19:20:08 UTC

[maven] 01/03: [MNG-6535] Improve test coverage of UrlNormalizer.

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MNG-6703
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 11e1bcdf644cc0c3a17d33cfb44b0d82c6214ed1
Author: Joseph Walton <jo...@kafsemo.org>
AuthorDate: Mon May 20 22:17:24 2019 +1000

    [MNG-6535] Improve test coverage of UrlNormalizer.
    
    Refine the original PR to the test that improves coverage;
    give it a clearer description of its behaviour.
---
 .../java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java b/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java
index 88fdc9c..ac9489f 100644
--- a/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java
+++ b/maven-model-builder/src/test/java/org/apache/maven/model/path/DefaultUrlNormalizerTest.java
@@ -82,4 +82,8 @@ public class DefaultUrlNormalizerTest
                       normalize( "[fetch=]http://server.org/[push=]ssh://server.org/" ) );
     }
 
+    public void testNormalizeInputWithNoParentDirectoriesToAscendTo()
+    {
+        assertEquals("a/../", normalize("a/../"));
+    }
 }