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/01 19:52:27 UTC

[maven] branch MNG-6535 created (now f71766b)

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

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


      at f71766b  Improve test coverage of org.apache.maven.model.path.DefaultUrlNormalizer

This branch includes the following new commits:

     new f71766b  Improve test coverage of org.apache.maven.model.path.DefaultUrlNormalizer

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven] 01/01: Improve test coverage of org.apache.maven.model.path.DefaultUrlNormalizer

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

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

    Improve test coverage of org.apache.maven.model.path.DefaultUrlNormalizer
    
    This closes #264
---
 .../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/../"));
+    }
 }