Hou Tianze wants to merge 1 commit from /u/ibic/dbunit/ to master, 2017-09-15
Just as we discussed over:
https://sourceforge.net/p/dbunit/feature-requests/179/
As I am not too familiar with the code structures/conventions of dbunit, here are the things you may want to note:
dbunit/pom.xml, to add postgresql dependency. I'm not sure if this extra dependency is necessary (as it already exists in some other section(s)), or the place of adding, but I can't compile without this addtion.PostgreSQLOidDataType.java to package org.dbunit.dataset.datatype instead of org.dbunit.ext.postgresql, because the class PostgreSQLOidDataType extends BytesDataType, which is in the datatype package, due to accessibility, PostgreSQLOidDataType has to reside in the same package as well. As Java doesn't have a friend keyword, I couldn't find a better way to refactor this.Needless to say, major implmentation code were done the original author @mfrechePgest .
Very nice, thank you!
A couple of questions:
// TODO: I don't know if the following zero check..."?PostgreSQLOidDataTypehas a TODO "// TODO: I need to do this check to avoid exceptions as well", is this a leftover and we should remove it or does it mean a check needs adding?A few code adjustment requests: Are you ok to do these and squash into one commit? (then it's fully your commit vs yours and my mods).
BytesDataTypeconstructorpublicthen can movePostgreSQLOidDataTypeto theorg.dbunit.ext.postgresqlpackage. Idk why it's not public; its parent and other similar classes have public constructors so let's make it public.SQLHelperDomainPostgreSQLIT.changes.xmlfile (replace the current empty "in scm" one):Any thoughts/questions, just let me know!
You're welcome.
For the adjustments:
SQLHelperDomainPostgreSQLITclass. Do you have a short intro how to write/run integration tests?due-to="mfrechePgest,ibic"One more question: I guess there are probably changes in your upstream repository, do I need to pull & rebase in my repo to make the changes? Or I just simpley continue working on my repo, sqash the commits into one and raise another merge-request? Thanks.
Last edit: Hou Tianze 2017-09-15
Yes, pull in anything latest so the final MR is clean/easy. May not be any commits since you started.
Last edit: Jeff Jensen 2017-09-15
Thanks for the info. I've created the integration test (and the test passed) and made another merge-request here:
https://sourceforge.net/p/dbunit/code.git/merge-requests/33/
You can ignore its previous merge-request (32), in which I forgot to remove
PostgreSQLOidDataTypefrom the wrong location.