commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/math IntRangeTest.java
Date Thu, 04 Sep 2003 16:25:56 GMT
psteitz     2003/09/04 09:25:56

  Modified:    lang/src/test/org/apache/commons/lang/math IntRangeTest.java
  Log:
  Added missing constructor calls to complete path coverage in IntRangeTest.
  Suggested by Janek Bogucki.
  
  Revision  Changes    Path
  1.6       +7 -1      jakarta-commons/lang/src/test/org/apache/commons/lang/math/IntRangeTest.java
  
  Index: IntRangeTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/math/IntRangeTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- IntRangeTest.java	18 Aug 2003 02:22:27 -0000	1.5
  +++ IntRangeTest.java	4 Sep 2003 16:25:56 -0000	1.6
  @@ -60,6 +60,8 @@
    * Test cases for the {@link IntRange} class.
    *
    * @author Stephen Colebourne
  + * @author Janek Bogucki
  + * @author Phil Steitz
    * @version $Id$
    */
   public final class IntRangeTest extends AbstractRangeTest {
  @@ -134,6 +136,10 @@
           // test non Integer, for full coverage
           Long fiveL = new Long(5L);
           Long tenL = new Long(10L);
  +        nr = new IntRange(fiveL, tenL);
  +        assertEquals(five, nr.getMinimumNumber());
  +        assertEquals(ten, nr.getMaximumNumber());
  +        nr = new IntRange(tenL, fiveL);
           assertEquals(five, nr.getMinimumNumber());
           assertEquals(ten, nr.getMaximumNumber());
           
  
  
  

Mime
View raw message