maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1585710 - /maven/release/trunk/maven-release-policies/maven-release-oddeven-policy/src/test/java/org/apache/maven/shared/release/policy/oddeven/OddEvenVersionPolicyTestCase.java
Date Tue, 08 Apr 2014 12:40:44 GMT
Author: simonetripodi
Date: Tue Apr  8 12:40:44 2014
New Revision: 1585710

URL: http://svn.apache.org/r1585710
Log:
added a test to demonstrate that an odd SNAPSHOT version is converted to an even release version

Modified:
    maven/release/trunk/maven-release-policies/maven-release-oddeven-policy/src/test/java/org/apache/maven/shared/release/policy/oddeven/OddEvenVersionPolicyTestCase.java

Modified: maven/release/trunk/maven-release-policies/maven-release-oddeven-policy/src/test/java/org/apache/maven/shared/release/policy/oddeven/OddEvenVersionPolicyTestCase.java
URL: http://svn.apache.org/viewvc/maven/release/trunk/maven-release-policies/maven-release-oddeven-policy/src/test/java/org/apache/maven/shared/release/policy/oddeven/OddEvenVersionPolicyTestCase.java?rev=1585710&r1=1585709&r2=1585710&view=diff
==============================================================================
--- maven/release/trunk/maven-release-policies/maven-release-oddeven-policy/src/test/java/org/apache/maven/shared/release/policy/oddeven/OddEvenVersionPolicyTestCase.java
(original)
+++ maven/release/trunk/maven-release-policies/maven-release-oddeven-policy/src/test/java/org/apache/maven/shared/release/policy/oddeven/OddEvenVersionPolicyTestCase.java
Tue Apr  8 12:40:44 2014
@@ -64,6 +64,16 @@ public final class OddEvenVersionPolicyT
         assertEquals( "1.0.0", suggestedVersion );
     }
 
+    @Test
+    public void testConvertOddToRelease()
+        throws Exception
+    {
+        String suggestedVersion = versionPolicy.getReleaseVersion( newVersionPolicyRequest(
"1.0.1-SNAPSHOT" ) )
+                                               .getVersion();
+
+        assertEquals( "1.0.2", suggestedVersion );
+    }
+
     private static VersionPolicyRequest newVersionPolicyRequest( String version )
     {
         return new VersionPolicyRequest().setVersion( version );



Mime
View raw message