commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754556 - in /commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder: BuilderTestSuite.java ShortPrefixToStringStyleTest.java
Date Sat, 14 Mar 2009 23:43:19 GMT
Author: sebb
Date: Sat Mar 14 23:43:18 2009
New Revision: 754556

URL: http://svn.apache.org/viewvc?rev=754556&view=rev
Log:
Fix broken testPerson test and add containing test class to package suite

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

Modified: commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/BuilderTestSuite.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/BuilderTestSuite.java?rev=754556&r1=754555&r2=754556&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/BuilderTestSuite.java
(original)
+++ commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/BuilderTestSuite.java
Sat Mar 14 23:43:18 2009
@@ -57,6 +57,7 @@
         suite.addTestSuite(NoFieldNamesToStringStyleTest.class);
         suite.addTestSuite(MultiLineToStringStyleTest.class);
         suite.addTestSuite(ReflectionToStringBuilderExcludeTest.class);
+        suite.addTestSuite(ShortPrefixToStringStyleTest.class);
         suite.addTestSuite(SimpleToStringStyleTest.class);
         suite.addTestSuite(StandardToStringStyleTest.class);
         suite.addTestSuite(ToStringStyleTest.class);

Modified: commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java?rev=754556&r1=754555&r2=754556&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
(original)
+++ commons/proper/lang/branches/LANG_POST_2_4/src/test/org/apache/commons/lang/builder/ShortPrefixToStringStyleTest.java
Sat Mar 14 23:43:18 2009
@@ -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