mcconnell    2003/07/12 00:34:03

  Modified:    framework/src/test/org/apache/avalon/framework/test
                        VersionTestCase.java
  Log:
  Update the test case to handle valid "" string version argument (corresponds to a -1 
version).
  
  Revision  Changes    Path
  1.8       +2 -3      
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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- VersionTestCase.java      20 May 2003 19:46:31 -0000      1.7
  +++ VersionTestCase.java      12 Jul 2003 07:34:03 -0000      1.8
  @@ -82,12 +82,11 @@
       {
           try
           {
  -            Version.getVersion( "" );
  -            fail( "Empty string is illegal version string" );
  +            assertEquals( -1, Version.getVersion( "" ).getMajor() );
           }
           catch ( final IllegalArgumentException iae )
           {
  -            //OK
  +            fail( "Empty string is legal version string" );
           }
   
           try
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to