avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon/framework/src/test/org/apache/avalon/framework/test VersionTestCase.java
Date Sat, 12 Jul 2003 15:54:19 GMT
mcconnell    2003/07/12 08:54:19

  Modified:    framework/src/test/org/apache/avalon/framework/test
                        VersionTestCase.java
  Log:
  Add -1 version tests.
  
  Revision  Changes    Path
  1.9       +4 -0      avalon/framework/src/test/org/apache/avalon/framework/test/VersionTestCase.java
  
  Index: VersionTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon/framework/src/test/org/apache/avalon/framework/test/VersionTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- VersionTestCase.java	12 Jul 2003 07:34:03 -0000	1.8
  +++ VersionTestCase.java	12 Jul 2003 15:54:19 -0000	1.9
  @@ -103,10 +103,14 @@
   
       public void testComplies()
       {
  +        final Version v0 = new Version( -1, 0 , 0 );
           final Version v1 = new Version( 1, 3 , 6 );
           final Version v2 = new Version( 1, 3 , 7 );
           final Version v3 = new Version( 1, 4 , 0 );
           final Version v4 = new Version( 2, 0 , 1 );
  +
  +        assertTrue(   v0.complies( v1 ) );
  +        assertTrue(   v0.complies( v4 ) );
           
           assertTrue(   v1.complies( v1 ) );
           assertTrue( ! v1.complies( v2 ) );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message