-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BulkCopy ColumnMapping test #127
Conversation
Add columnMappign junit tests
* @param expectedValue | ||
* @param actualValue | ||
*/ | ||
private void compareSourceDest(int dataType, Object expectedValue, Object actualValue){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the same method in BulkCopyTestUtil?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it can be used, modified test code to use it
finally { | ||
if(dropDest){ | ||
stmt.dropTable(destinationTable); | ||
con.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's close con and stmt out of if( dropDest ) check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The if(dropDest) condition is because some destination tables require further validation after performBulkCopy method.
i've moved con.close() to outside the if statement
Add junit test cases for bulkCopy column mapping