hakandilek / xmdl

Automatically exported from code.google.com/p/xmdl
0 stars 0 forks source link

Round date fields up to second #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If mysql is used as a database server, miliseconds in the timestamps are
neglected. Thus, test values for date fields should be rounded up to second.

What is the expected output? What do you see instead?
In TntityDAOTEst.java and sample-data.xml files date fields should be
changed from:
        assertEquals(new Date(1271151126739L), job.getPostDate());
to:
        assertEquals(new Date(1271151126000L), job.getPostDate());

Original issue reported on code.google.com by hakandi...@gmail.com on 10 Jan 2009 at 3:00