ADD: Testcase to show broken java.sql.Time support#558
ADD: Testcase to show broken java.sql.Time support#558peterbae merged 6 commits intomicrosoft:devfrom FOCONIS:bug/testcase-for-time-support
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #558 +/- ##
===========================================
+ Coverage 48.04% 48.1% +0.06%
- Complexity 2573 2578 +5
===========================================
Files 113 113
Lines 26574 26574
Branches 4429 4429
===========================================
+ Hits 12768 12784 +16
+ Misses 11683 11667 -16
Partials 2123 2123
Continue to review full report at Codecov.
|
merge dev
| @RunWith(JUnitPlatform.class) | ||
| public class DateAndTimeTypeTest extends AbstractTest { | ||
|
|
||
| private static final Date DATE_TO_TEST = new java.sql.Date(2017, 20, 11); |
There was a problem hiding this comment.
Could we use the non-deprecated constructors for Date, Time and Timestamp?
There was a problem hiding this comment.
Yes, of course. Just use any date/time/timestamp to run this test.
(I'm wondereing if 2017,20,11 are valid arguments at all)
There was a problem hiding this comment.
I think this style of argument is deprecated, and they want us to provide a long value that corresponds to this time instead. The long values for these Date, Time and Timestamp objects come to 61494793200000L, 74096000L, and 61494838496000L respectively, I believe.
|
|
||
| @BeforeEach | ||
| public void testSetup() throws TestAbortedException, Exception { | ||
| assumeTrue(9 <= new DBConnection(connectionString).getServerVersion(), |
There was a problem hiding this comment.
I think we can close this DBConnection by using try statement.
There was a problem hiding this comment.
Ack. (I think I've copied this line from an other test)
|
Hello @peterbae can you update this PR as mentioned above or should I do that? |
|
@rPraml I can update this PR for you, and I'll merge it as well. |
This PR is for issue #559