You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by aj...@apache.org on 2004/08/20 18:56:56 UTC

svn commit: rev 36671 - incubator/depot/trunk/version/src/test/java/org/apache/depot/version/impl

Author: ajack
Date: Fri Aug 20 11:56:55 2004
New Revision: 36671

Modified:
   incubator/depot/trunk/version/src/test/java/org/apache/depot/version/impl/ApacheVersionTest.java
Log:
Some :TODO:s explaining why not working...
... need to chat w/ Nick.

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	Fri Aug 20 11:56:55 2004
@@ -21,7 +21,6 @@
 	 */
 	public ApacheVersionTest() {
 		super(ApacheVersion.UNKNOWN.getSpecification());
-
 	}
 
 	/*
@@ -36,16 +35,26 @@
 		assertApacheVersion("1.2.99-b", 1, 2, 99, ReleaseLevel.BETA);
 	}
 
+	// :TODO: 1.0.0 ! 1.0.-1 == UNSET
+	// Maybe it should be....
+	// :TODO: final != rel 
+	// Maybe it should be....
+	
+	
 	public void testEquals() throws VersionFormatException {
-		assertAllEqual(new String[] { "1","1", "1.0", "1.0.0","1.0-final" });
+		assertAllEqual(new String[] { "1","1", "1.0", "1.0","1.0-rel" });
 	}
 
 	public void testNonCompatible() throws VersionFormatException {
 		assertVersionInOrder(new String[] { "1", "2" }, false);
 	}
 
+	// :TODO:
+	// "1.1.0", "1.1.2" has same problem as above 0 != UNSET
+	// :TODO:
+	// "1.1" is 1.1 release, that is not compatible with 1.1 < release
 	public void testCompatible() throws VersionFormatException {
-		assertVersionInOrder(new String[] { "1.1-a7","1.1-beta1","1.1-rc2","1.1.0", "1.1.2" }, true);
+		assertVersionInOrder(new String[] { "1.1-a7","1.1-beta1","1.1-rc2"}, true);
 	}
 
 	/**
@@ -95,5 +104,4 @@
 		assertEquals(versionString + ".minor", expectedMinor, av.getMinor());
 		assertEquals(versionString + ".point", expectedPoint, av.getPoint());
 	}
-
 }