Test fails on Birthday Card
Not sure why this is happening..
I'm getting a test failure on the Birthday Card extension test for the 0.6 Snapshot.
marshalBirthDayVCard(rocks.xmpp.extensions.vcard.temp.VCardTest) Time elapsed: 0.008 sec <<< FAILURE! java.lang.AssertionError: expected [<vCard xmlns="vcard-temp" version="3.0"><BDAY>2004-03-20Z</BDAY></vCard>] but found [<vCard xmlns="vcard-temp" version="3.0"><BDAY>2004-03-19Z</BDAY></vCard>] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertEquals(Assert.java:123) at org.testng.Assert.assertEquals(Assert.java:176) at org.testng.Assert.assertEquals(Assert.java:186) at rocks.xmpp.extensions.vcard.temp.VCardTest.marshalBirthDayVCard(VCardTest.java:173)
Off by an hour, so I've gotta assume there's some interaction with my time zone? Anyone else see this?
Thanks in advance.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
Fixed in 0.5.1 and 0.6.0.
-
repo owner - changed status to closed
- Log in to comment
Thanks! Would you check if the latest commit rectifies it?
bd9b54ad78ab177dcc9035998b89c68eed839280
I've got rid of java.util.Date and use java.time.LocalDate now. Must have missed it, when I changed that in other places.