I have an application for which the prod/test/qa database is only Oracle.
Furthermore, I suspect SQL queries to be Oracle-specific.
And unfortunatly, this application has second to no unit tests.
As a consequence, I would like to implement to unit tests, specifically regarding the search component (which obviously performs lots of Oracle operations, including table creation).
Usually, when I want to run tests, I start an embedded database (HSQL, as an example), run my tests on that database, and let it fade away when my tests end.
Due to my lack of confidence on the standardization level of this application, I would prefer to run tests on an Oracle database. As a consequence, I would like to start oracle database when my tests start, fill it with some test datan and stop it on test end. How can I do that in a maven context ?
Copyright Notice:Content Author:「Riduidel」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37608120/how-to-use-oracle-as-an-embedded-database-for-running-unit-tests-in-maven