You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/06/07 15:08:43 UTC
[lang] Show more info on failure
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 <se...@apache.org>
Authored: Sun Jun 7 14:08:35 2015 +0100
Committer: Sebb <se...@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()
+ );
}
}
}