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 2021/10/18 15:52:11 UTC

[maven-scm] branch SCM-969 updated: aa

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

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


The following commit(s) were added to refs/heads/SCM-969 by this push:
     new 200f2d1  aa
200f2d1 is described below

commit 200f2d1e831d4e943e4b15589bc372483c864cfc
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Mon Oct 18 17:52:06 2021 +0200

    aa
---
 .../apache/maven/scm/provider/ScmUrlUtilsTest.java | 26 ----------------------
 1 file changed, 26 deletions(-)

diff --git a/maven-scm-api/src/test/java/org/apache/maven/scm/provider/ScmUrlUtilsTest.java b/maven-scm-api/src/test/java/org/apache/maven/scm/provider/ScmUrlUtilsTest.java
index 17738cf..035a777 100644
--- a/maven-scm-api/src/test/java/org/apache/maven/scm/provider/ScmUrlUtilsTest.java
+++ b/maven-scm-api/src/test/java/org/apache/maven/scm/provider/ScmUrlUtilsTest.java
@@ -28,12 +28,6 @@ import junit.framework.TestCase;
 public class ScmUrlUtilsTest
     extends TestCase
 {
-    private static final String SCM_URL_CVS_COLON = "scm:cvs:local:repository:module";
-
-    private static final String SCM_URL_CVS_PIPE = "scm:cvs|local|repository|module";
-
-    private static final String SCM_URL_CVS_INVALID = "scm|cvs|local|repository|module";
-
     private static final String SCM_URL_INVALID_1 = null;
 
     private static final String SCM_URL_INVALID_2 = "scm";
@@ -50,21 +44,9 @@ public class ScmUrlUtilsTest
 
     private static final String SCM_URL_VALID_4 = "scm:a|provider-specific-part";
 
-    public void testGetDelimiter()
-        throws Exception
-    {
-        assertEquals( ":", ScmUrlUtils.getDelimiter( SCM_URL_CVS_COLON ) );
-        assertEquals( "|", ScmUrlUtils.getDelimiter( SCM_URL_CVS_PIPE ) );
-        assertEquals( "|", ScmUrlUtils.getDelimiter( SCM_URL_CVS_INVALID ) );
-    }
-
     public void testGetProvider()
         throws Exception
     {
-        assertEquals( "cvs", ScmUrlUtils.getProvider( SCM_URL_CVS_COLON ) );
-        assertEquals( "cvs", ScmUrlUtils.getProvider( SCM_URL_CVS_PIPE ) );
-        assertEquals( "cvs", ScmUrlUtils.getProvider( SCM_URL_CVS_INVALID ) );
-
         assertEquals( "a", ScmUrlUtils.getProvider( SCM_URL_VALID_1 ) );
         assertEquals( "a", ScmUrlUtils.getProvider( SCM_URL_VALID_2 ) );
         assertEquals( "a", ScmUrlUtils.getProvider( SCM_URL_VALID_3 ) );
@@ -74,10 +56,6 @@ public class ScmUrlUtilsTest
     public void testGetProviderSpecificPart()
         throws Exception
     {
-        assertEquals( "local:repository:module", ScmUrlUtils.getProviderSpecificPart( SCM_URL_CVS_COLON ) );
-        assertEquals( "local|repository|module", ScmUrlUtils.getProviderSpecificPart( SCM_URL_CVS_PIPE ) );
-        assertEquals( "local|repository|module", ScmUrlUtils.getProviderSpecificPart( SCM_URL_CVS_INVALID ) );
-
         assertEquals( "", ScmUrlUtils.getProviderSpecificPart( SCM_URL_VALID_1 ) );
         assertEquals( "", ScmUrlUtils.getProviderSpecificPart( SCM_URL_VALID_2 ) );
         assertEquals( "provider-specific-part", ScmUrlUtils.getProviderSpecificPart( SCM_URL_VALID_3 ) );
@@ -87,10 +65,6 @@ public class ScmUrlUtilsTest
     public void testIsValid()
         throws Exception
     {
-        assertTrue( ScmUrlUtils.isValid( SCM_URL_CVS_COLON ) );
-        assertTrue( ScmUrlUtils.isValid( SCM_URL_CVS_PIPE ) );
-        assertFalse( ScmUrlUtils.isValid( SCM_URL_CVS_INVALID ) );
-
         assertTrue( ScmUrlUtils.isValid( SCM_URL_VALID_1 ) );
         assertTrue( ScmUrlUtils.isValid( SCM_URL_VALID_2 ) );
         assertTrue( ScmUrlUtils.isValid( SCM_URL_VALID_3 ) );