You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2021/09/30 19:43:41 UTC

[maven] branch MNG-7277 updated (d4fca0d -> 2b418b4)

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

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


 discard d4fca0d  [MNG-7277] - Wrong Test - testNonNumericVersionRepresentationReturnsANumberFormatException
     new 2b418b4  [MNG-7277] - Remove useless Test - testNonNumericVersionRepresentationReturnsANumberFormatException

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (d4fca0d)
            \
             N -- N -- N   refs/heads/MNG-7277 (2b418b4)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:

[maven] 01/01: [MNG-7277] - Remove useless Test - testNonNumericVersionRepresentationReturnsANumberFormatException

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

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

commit 2b418b4716578d7600231e08ca68a21b45757ac8
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Thu Sep 30 21:43:34 2021 +0200

    [MNG-7277] - Remove useless Test - testNonNumericVersionRepresentationReturnsANumberFormatException
---
 .../maven/artifact/versioning/DefaultArtifactVersionTest.java  | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java b/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java
index aba36bb..fe22843 100644
--- a/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java
+++ b/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java
@@ -205,16 +205,6 @@ public class DefaultArtifactVersionTest
         assertFalse( newArtifactVersion( "1" ).equals( "non-an-artifact-version-instance" ) );
     }
 
-    @Test
-    @Disabled("That one does not work")
-    public void testNonNumericVersionRepresentationReturnsANumberFormatException()
-    {
-        assertThrows(
-                NumberFormatException.class,
-                () -> new DefaultArtifactVersion( "..." ),
-                "We expect a NumberFormatException to be thrown." );
-    }
-
     private void assertVersionOlder( String left, String right )
     {
         assertTrue(