commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [lang] Show more info on failure
Date Sun, 07 Jun 2015 13:08:43 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 756ccc935 -> 612236c8a


Show more info on failure

Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/612236c8
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/612236c8
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/612236c8

Branch: refs/heads/master
Commit: 612236c8a77d5d8c4755e287f682cf06d773a902
Parents: 756ccc9
Author: Sebb <sebb@apache.org>
Authored: Sun Jun 7 14:08:35 2015 +0100
Committer: Sebb <sebb@apache.org>
Committed: Sun Jun 7 14:08:35 2015 +0100

----------------------------------------------------------------------
 .../lang3/time/FastDateParser_TimeZoneStrategyTest.java     | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/612236c8/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java
b/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java
index 7c557be..34a67c0 100644
--- a/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java
@@ -38,10 +38,13 @@ public class FastDateParser_TimeZoneStrategyTest {
                         parser.parse(tzDisplay);
                     }
                     catch(Exception ex) {
-                        Assert.fail(tzDisplay
-                                + " Locale: " + locale.getDisplayName()
+                        Assert.fail("'" + tzDisplay + "'"
+                                + " Locale: '" + locale.getDisplayName() + "'"
                                 + " TimeZone: " + zone[0]
-                                + " offset: " + t);
+                                + " offset: " + t
+                                + " defaultLocale: " + Locale.getDefault()
+                                + " defaultTimeZone: " + TimeZone.getDefault().getDisplayName()
+                                );
                     }
                 }
             }


Mime
View raw message