diff options
author | Gary Gregory <garydgregory@gmail.com> | 2022-12-07 09:40:56 -0500 |
---|---|---|
committer | Gary Gregory <garydgregory@gmail.com> | 2022-12-07 09:40:56 -0500 |
commit | f55164f28e1a720d2ec7e27a6ebfe7e501710dd6 (patch) | |
tree | 60d3457a48cc0a6511082b8139bb79f548b6dbe4 | |
parent | c92aa75f35a93b6dd068b48d4287e645dc8c0f25 (diff) | |
download | apache-commons-lang-f55164f28e1a720d2ec7e27a6ebfe7e501710dd6.tar.gz |
Reset TimeZone after test
-rw-r--r-- | src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java index 8fc9d19c3..00f55351e 100644 --- a/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/time/DurationFormatUtilsTest.java @@ -32,6 +32,7 @@ import java.util.TimeZone; import org.apache.commons.lang3.AbstractLangTest; import org.junit.jupiter.api.Test; +import org.junitpioneer.jupiter.DefaultTimeZone; /** * TestCase for DurationFormatUtils. @@ -106,8 +107,9 @@ public class DurationFormatUtilsTest extends AbstractLangTest { //bruteForce(1996, 1, 29, "M", Calendar.MONTH); // this will fail } - // Attempting to test edge cases in DurationFormatUtils.formatPeriod + /** Attempting to test edge cases in DurationFormatUtils.formatPeriod. */ @Test + @DefaultTimeZone(TimeZones.GMT_ID) public void testEdgeDurations() { // This test case must use a time zone without DST TimeZone.setDefault(FastTimeZone.getGmtTimeZone()); |