[
https://issues.apache.org/jira/browse/CLI-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822854#comment-17822854
]
Claude Warren commented on CLI-327:
-----------------------------------
Errors include
{{[ERROR] Tests run: 55, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
0.069 s <<< FAILURE! -- in org.apache.commons.cli.TypeHandlerTest}}
{{[ERROR] org.apache.commons.cli.TypeHandlerTest.createValueTests(String,
Class, Object)[4] -- Time elapsed: 0.002 s <<< FAILURE!}}
{{org.opentest4j.AssertionFailedError: expected: <Thu Jun 06 23:48:57 CEST
2002> but was: <Fri Jun 07 00:48:57 CEST 2002>}}
{{ at
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)}}
{{ at
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)}}
{{ at
org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)}}
{{ at
org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)}}
{{ at
org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)}}
{{ at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)}}
{{ at
org.apache.commons.cli.TypeHandlerTest.createValueTests(TypeHandlerTest.java:160)}}
{{and }}
[ERROR] Tests run: 14, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.297
s <<< FAILURE! -- in org.apache.commons.cli.ConverterTests
[ERROR] org.apache.commons.cli.ConverterTests.dateTests -- Time elapsed: 0.166
s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <Thu Jun 06 23:48:57 CEST 2002>
but was: <Fri Jun 07 00:48:57 CEST 2002>
at
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
at org.apache.commons.cli.ConverterTests.dateTests(ConverterTests.java:79)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
> Date processing tests fail on some systems
> ------------------------------------------
>
> Key: CLI-327
> URL: https://issues.apache.org/jira/browse/CLI-327
> Project: Commons CLI
> Issue Type: Bug
> Components: CLI-1.x
> Affects Versions: 1.7.0
> Reporter: Claude Warren
> Assignee: Claude Warren
> Priority: Critical
>
> On one of my systems the date conversions do not work as expected. I suspect
> this is some sort of entanglement between time zones and environment settings.
> I was able to fix the problem by creating the expected values from known
> values rather than hardcoding the expected date time strings.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)