[LANG-943] Test DurationFormatUtilsTest.testEdgeDuration fails in JDK 1.6, 1.7 and 1.8, BRST time zone
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1559802 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b5a9cd944c
commit
5d10a4a6aa
|
@ -22,6 +22,7 @@
|
|||
<body>
|
||||
|
||||
<release version="3.3" date="TBA" description="Bugfix and Feature release">
|
||||
<action issue="LANG-943" type="fix" dev="kinow">Test DurationFormatUtilsTest.testEdgeDuration fails in JDK 1.6, 1.7 and 1.8, BRST time zone</action>
|
||||
<action issue="LANG-613" type="fix" dev="mbenson">ConstructorUtils.getAccessibleConstructor() Does Not Check the Accessibility of Enclosing Classes</action>
|
||||
<action issue="LANG-951" type="fix" dev="britter" due-to="Sebastian Götz">Fragments are wrong by 1 day when using fragment YEAR or MONTH</action>
|
||||
<action issue="LANG-417" type="add" dev="britter">New class ClassPathUtils with methods for turning FQN into resource path</action>
|
||||
|
|
|
@ -430,6 +430,8 @@ public class DurationFormatUtilsTest {
|
|||
// Attempting to test edge cases in DurationFormatUtils.formatPeriod
|
||||
@Test
|
||||
public void testEdgeDurations() {
|
||||
// This test case must use a time zone without DST
|
||||
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
|
||||
assertEqualDuration( "01", new int[] { 2006, 0, 15, 0, 0, 0 },
|
||||
new int[] { 2006, 2, 10, 0, 0, 0 }, "MM");
|
||||
assertEqualDuration( "12", new int[] { 2005, 0, 15, 0, 0, 0 },
|
||||
|
|
Loading…
Reference in New Issue