Skip to content

Commit

Permalink
Fixed test, closed RS
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyc committed Aug 22, 2024
1 parent 457f27d commit dec9d30
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ public void testTimestampStringTimeZoneFormat() throws SQLException {

selectStatement.setInt(1, id);

ResultSet result = selectStatement.executeQuery();
result.next();

Assertions.assertEquals(id, result.getInt("id"));
Assertions.assertEquals(createdDate, new Date(result.getTimestamp("created_date").getTime()));
Assertions.assertEquals(deletedDate, new Date(result.getTimestamp("deleted_date").getTime()));
try (ResultSet result = selectStatement.executeQuery()) {
result.next();
Assertions.assertEquals(id, result.getInt("id"));
Assertions.assertEquals(createdDate, new Date(result.getTimestamp("created_date").getTime()));
Assertions.assertEquals(deletedDate, new Date(result.getTimestamp("deleted_date").getTime()));
}
}
}

Expand Down

0 comments on commit dec9d30

Please sign in to comment.