commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/builder ToStringBuilderTest.java
Date Thu, 01 Jul 2004 17:58:09 GMT
ggregory    2004/07/01 10:58:09

  Modified:    lang/src/test/org/apache/commons/lang/builder
                        ToStringBuilderTest.java
  Log:
  PR: http://issues.apache.org/bugzilla/show_bug.cgi?id=27876
  [lang] ReflectionToStringBuilder.toString(null) throws exception by design
  new ToStringBuilder(null).toString() == the style's nullText.
  
  Revision  Changes    Path
  1.15      +4 -4      jakarta-commons/lang/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
  
  Index: ToStringBuilderTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ToStringBuilderTest.java	30 Jun 2004 18:22:22 -0000	1.14
  +++ ToStringBuilderTest.java	1 Jul 2004 17:58:09 -0000	1.15
  @@ -62,16 +62,16 @@
       //-----------------------------------------------------------------------
   
       public void testConstructorEx1() {
  -        assertEquals("", new ToStringBuilder(null).toString());
  +        assertEquals("<null>", new ToStringBuilder(null).toString());
       }
   
       public void testConstructorEx2() {
  -        assertEquals("", new ToStringBuilder(null, null).toString());
  +        assertEquals("<null>", new ToStringBuilder(null, null).toString());
           new ToStringBuilder(this.base, null).toString();
       }
   
       public void testConstructorEx3() {
  -        assertEquals("", new ToStringBuilder(null, null, null).toString());
  +        assertEquals("<null>", new ToStringBuilder(null, null, null).toString());
           new ToStringBuilder(this.base, null, null);
           new ToStringBuilder(this.base, ToStringStyle.DEFAULT_STYLE, null);
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message