incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 35696 - incubator/depot/trunk/version/src/test/java/org/apache/depot/version/impl
Date Wed, 04 Aug 2004 19:52:25 GMT
Author: nickchalko
Date: Wed Aug  4 12:52:24 2004
New Revision: 35696

Modified:
   incubator/depot/trunk/version/src/test/java/org/apache/depot/version/impl/ApacheVersionTest.java
Log:
Added more test.   fixed bug in assertCompoundVersion

Modified: incubator/depot/trunk/version/src/test/java/org/apache/depot/version/impl/ApacheVersionTest.java
==============================================================================
--- incubator/depot/trunk/version/src/test/java/org/apache/depot/version/impl/ApacheVersionTest.java
(original)
+++ incubator/depot/trunk/version/src/test/java/org/apache/depot/version/impl/ApacheVersionTest.java
Wed Aug  4 12:52:24 2004
@@ -24,7 +24,9 @@
         //Logger.testInit();
         
         assertApacheVersion("1.2.1", 1, 2, 1, ReleaseLevel.DEFAULT);
-        assertApacheVersion("1.2.1-dev", 1, 2, 1, ReleaseLevel.DEVELOPMENT);        
+        assertApacheVersion("1.2.1-dev", 1, 2, 1, ReleaseLevel.DEVELOPMENT);
+        assertApacheVersion("1.2", 1, 2, -1, ReleaseLevel.DEFAULT);   
+        assertApacheVersion("1.2.99-b", 1, 2, 99, ReleaseLevel.BETA);    
     }
 
     /**
@@ -65,7 +67,7 @@
     private void assertCompondVersion(final String versionString, CompoundVersion av, int
expectedMajor, int expectedMinor, int expectedPoint) {
         assertEquals(versionString + ".major", expectedMajor, av.getMajor());
         assertEquals(versionString + ".minor", expectedMinor, av.getMinor());
-        assertEquals(versionString + ".point", expectedPoint, av.getMajor());
+        assertEquals(versionString + ".point", expectedPoint, av.getPoint());
     }
 
 }

Mime
View raw message