* @throws Exception
*/
/* */
@Test
public void testSqlDate() {
final SqlDataClass sqlDataClass = SqlIntegrationTestSingleton.getDataClass();
// LOG.log(Level.INFO, "Test: testSqlDate() '2011-4-8' == 1302220800000");
// 2011-4-8 = 1302220800000
// LOG.log(Level.INFO, "sqlDate.toString() as String:" + sqlDate); // shows as 2011-04-07
// LOG.log(Level.INFO, "sqlDate.getTime() as Long:" + sqlDate.getTime());
// 2011-4-8 = 1302220800000
// LOG.log(Level.INFO, "sqlDataClass.getSqlDate() as String:" + sqlDataClass.getSqlDate()); // shows as
// 2011-04-07
// LOG.log(Level.INFO, "sqlDataClass.getSqlDate().getTime() as Long:" + sqlDataClass.getSqlDate().getTime());
if (sqlDate.compareTo(sqlDataClass.getSqlDate()) != 0) {
fail("SQL date: Test '2011-4-8', expected " + sqlDate.toString() + ", but got "
+ sqlDataClass.getSqlDate().toString() + ". Check log for more info.");
// LOG.log(Level.INFO, "SQL date: Test '2011-4-8', expected " + sqlDate.toString() + ", and got "
// + sqlDataClass.getSqlDate().toString() +". Check log for more info.");
} else {
// LOG.log(Level.INFO, "SQL date: test passed! Woohoo!");
}