You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the SQL databases, it seems like it would be better to just do integration tests using predefined sql files as resources for the structure of the databases to create. That will allow for better overall application testing. I am not too sure how to get that testing to work for both MonogDB and Couchbase.
Mocking the database using Mockito might be an option as well.
If you were to use Mockito for unit tests, I would use it to mock DbConn subclasses since that would keep from having to actually go to the database itself while still allowing partial tests for the subclass' functionality since you can use the real methods. It would require that ResultSet be mocked as well just to make sure that as few things change as possible. Other things may need to be mocked as well.
Some cleanup has been done to the SQL files that are used for the integration tests. They are smaller, but some more changes need to occur in order to make sure everything works as expected. There is a table called rds that needs to have more indexes added, be renamed, and have only a few more columns than those that are used by the indexes.
Activity
pjkaufman commentedon Aug 8, 2020
For the SQL databases, it seems like it would be better to just do integration tests using predefined sql files as resources for the structure of the databases to create. That will allow for better overall application testing. I am not too sure how to get that testing to work for both MonogDB and Couchbase.
Mocking the database using Mockito might be an option as well.
pjkaufman commentedon Aug 13, 2020
Checklist for MySQL Tests that need to be done in order to make sure it is working correctly in a full comparison:
pjkaufman commentedon Aug 14, 2020
If you were to use Mockito for unit tests, I would use it to mock DbConn subclasses since that would keep from having to actually go to the database itself while still allowing partial tests for the subclass' functionality since you can use the real methods. It would require that ResultSet be mocked as well just to make sure that as few things change as possible. Other things may need to be mocked as well.
pjkaufman commentedon Sep 7, 2020
Some cleanup has been done to the SQL files that are used for the integration tests. They are smaller, but some more changes need to occur in order to make sure everything works as expected. There is a table called rds that needs to have more indexes added, be renamed, and have only a few more columns than those that are used by the indexes.