Michael Bolz created OLINGO-887:
-----------------------------------
Summary: Failure in EdmDateTest.valueToString:56
Key: OLINGO-887
URL: https://issues.apache.org/jira/browse/OLINGO-887
Project: Olingo
Issue Type: Bug
Components: odata4-commons
Affects Versions: (Java) V4 4.2.0
Reporter: Michael Bolz
Priority: Minor
Since a few days (and I guess [this
commit|https://git1-us-west.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=7b26cc6ee7515b4f2657fe9756862882ead7f26d])
I get following test failure in
{{org.apache.olingo.commons.core.edm.primitivetype.EdmDateTest.valueToString(...)}}:
{code}
Failed tests:
EdmDateTest.valueToString:56 expected:<2012-0[2-29]> but was:<2012-0[3-01]>
{code}
Based on the commit, the test code (see below), my none english (german)
environment and the fact that the official build on [Apache
Jenkins|https://builds.apache.org/job/olingo-odata4] runs without failure, I
guess that the test should be changed that it is independent from the
environment or the change in the {{EdmDate}} should be reviewed.
{code}
final Long millis = 1330558323007L;
assertEquals("2012-02-29", instance.valueToString(millis, null, null, null,
null, null));
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)