scolebourne    2003/07/19 13:19:24

  Modified:    lang/src/test/org/apache/commons/lang
                        NullArgumentExceptionTest.java
               lang/src/java/org/apache/commons/lang
                        NullArgumentException.java
  Log:
  Change error text to be more clear
  
  Revision  Changes    Path
  1.2       +4 -3      
jakarta-commons/lang/src/test/org/apache/commons/lang/NullArgumentExceptionTest.java
  
  Index: NullArgumentExceptionTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/NullArgumentExceptionTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NullArgumentExceptionTest.java    15 May 2003 04:05:11 -0000      1.1
  +++ NullArgumentExceptionTest.java    19 Jul 2003 20:19:24 -0000      1.2
  @@ -62,6 +62,7 @@
    * JUnit tests.
    * 
    * @author Matthew Hawthorne
  + * @author Stephen Colebourne
    * @version $Id$
    * @see NullArgumentException
    */
  @@ -89,13 +90,13 @@
   
       public void testGetMessage_nullConstructorInput() {
           final Throwable t = new NullArgumentException(null);
  -        assertEquals("null cannot be null.", t.getMessage());
  +        assertEquals("null must not be null.", t.getMessage());
       }
   
       public void testGetMessage_validConstructorInput() {
           final String argName = "name";
           final Throwable t = new NullArgumentException(argName);
  -        assertEquals(argName + " cannot be null.", t.getMessage());
  +        assertEquals(argName + " must not be null.", t.getMessage());
       }
   
   } // NullArgumentExceptionTest
  
  
  
  1.4       +4 -3      
jakarta-commons/lang/src/java/org/apache/commons/lang/NullArgumentException.java
  
  Index: NullArgumentException.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/NullArgumentException.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NullArgumentException.java        14 Jul 2003 22:25:02 -0000      1.3
  +++ NullArgumentException.java        19 Jul 2003 20:19:24 -0000      1.4
  @@ -58,6 +58,7 @@
    * not have been.</p>
    * 
    * @author Matthew Hawthorne
  + * @author Stephen Colebourne
    * @since 2.0
    * @version $Id$
    */
  @@ -65,11 +66,11 @@
   
        /**
         * <p>Instantiates with the given argument name.</p>
  -         *
  +     * 
         * @param argName  the name of the argument that was <code>null</code>.
         */
        public NullArgumentException(String argName) {
  -             super(argName + " cannot be null.");
  +             super(argName + " must not be null.");
        }
   
   }
  
  
  

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

Reply via email to