commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r905242 - /commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
Date Mon, 01 Feb 2010 10:44:10 GMT
Author: niallp
Date: Mon Feb  1 10:44:09 2010
New Revision: 905242

URL: http://svn.apache.org/viewvc?rev=905242&view=rev
Log:
Port r754549 to 2.x branch - Fix failing ShortPrefixToStringStyleTest

Modified:
    commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java

Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java?rev=905242&r1=905241&r2=905242&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
Mon Feb  1 10:44:09 2010
@@ -81,7 +81,7 @@
         p.name = "John Q. Public";
         p.age = 45;
         p.smoker = true;
-        String pBaseStr = p.getClass().getName();
+        String pBaseStr = "ToStringStyleTest.Person";
         assertEquals(pBaseStr + "[name=John Q. Public,age=45,smoker=true]", new ToStringBuilder(p).append("name",
p.name).append("age", p.age).append("smoker", p.smoker).toString());
     }
 



Mime
View raw message