Skip to content

Commit

Permalink
[misc] test change since doesn't respect checkstyle validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Nov 23, 2015
1 parent cacd7c7 commit 921ce34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/org/mariadb/jdbc/DateTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ public void timestampAsDate() throws SQLException {
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MILLISECOND, 0);
Date dateWithoutTime = new Date(cal.getTimeInMillis());

Calendar cal2 = Calendar.getInstance();
cal2.set(Calendar.YEAR, 1970);
Expand All @@ -266,7 +265,6 @@ public void timestampAsDate() throws SQLException {
cal3.set(Calendar.YEAR, 1970);
cal3.set(Calendar.MONTH, 0);
cal3.set(Calendar.DAY_OF_YEAR, 1);
Time zeroTime = new Time(cal3.getTimeInMillis());


Timestamp currentTimeStamp = new Timestamp(System.currentTimeMillis());
Expand All @@ -277,6 +275,9 @@ public void timestampAsDate() throws SQLException {
preparedStatement1.addBatch();
preparedStatement1.execute();

Date dateWithoutTime = new Date(cal.getTimeInMillis());
Time zeroTime = new Time(cal3.getTimeInMillis());

ResultSet rs = sharedConnection.createStatement().executeQuery("select * from timestampAsDate");
checkResult(rs, currentTimeStamp, cal, dateWithoutTime, zeroTime);

Expand Down

0 comments on commit 921ce34

Please sign in to comment.