I don't think that is a known bug.  It looks very similar to issue RYA-6. 
https://issues.apache.org/jira/browse/RYA-6
I would not think it is a fatal problem with your environment, more likely an 
unanticipated corner case.  I think this test was formulated to find those.

May I ask what your computer's time zone?
Use a command like this:

    Unix$ date -u

    Windows cmd> tzutil /g

and your operating system and  java version?

david.



-----Original Message-----
From: Amila Wijayarathna [mailto:amwijayarat...@gmail.com] 
Sent: Monday, February 29, 2016 2:07 PM
To: dev@rya.incubator.apache.org
Subject: Re: Test 'testMilliSecondsNoZone' Fails when Building from Source

 Hi all,
I am getting the same issue in 'develop' branch as well .

Thank you!


*Amila Wijayarathna,*
undergraduate,
Faculty of Information Technology,
University of Moratuwa,
Sri Lanka.

On Mon, Feb 29, 2016 at 11:46 PM, Amila Wijayarathna < 
amwijayarat...@gmail.com> wrote:

> Hi all,
>
> I am trying to build Apache Rya source available at [1]. I could 
> successfully built the source by running without tests using "mvn 
> clean install -Dmaven.test.skip=true". But when I am running the 
> source with tests using "mvn clean install", I am getting test failure at [2].
>
> It seems like in the test 'testMilliSecondsNoZone', it pass 
> '2002-02-02T02:02:02.222' to serializeAndDeserialize method, but it 
> returns '2002-02-01T02:02:02.222' after deserialising and it causes 
> the test to fail.
>
> Is this a know issue or am I getting this due to some incompatibility 
> in my environment?
>
> Any idea on this is thoroughly appreciated.
>
> [1]. 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_apache
> _incubator-2Drya&d=BQIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq1
> 0&r=ruy1rriFBFoeOJvvQWwN1h8AcdSNT3EVLrdVl7pr-iA&m=YMkoBqgmlbmrxhOslxCh
> aXpbBMpeTAkCqRWkaibToLM&s=hhM4nAeG7KurtBlNQNclAbVzZev4f-d2dx-Xlm6LHsI&
> e=
> [2].
> testMilliSecondsNoZone(mvm.rya.api.resolver.impl.DateTimeRyaTypeResolv
> erTest)  Time elapsed: 0.051 sec  <<< FAILURE!
> java.lang.AssertionError: Before='2002-02-02T02:02:02.222'; Expected 
> should match actual regex after='2002-02-02T\d\d:\d\d:02\.222Z'
> deserialized:2002-02-01T20:02:02.222Z
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at
> mvm.rya.api.resolver.impl.DateTimeRyaTypeResolverTest.testMilliSeconds
> NoZone(DateTimeRyaTypeResolverTest.java:116)
>
> Thank You!
>
> *Amila Wijayarathna,*
> undergraduate,
> Faculty of Information Technology,
> University of Moratuwa,
> Sri Lanka.
>

Reply via email to