Currently, CocoonTestCase extends ScriptTestCase
It should be broken, because a Test can need Cocoon without the need of a database
Then the tests will be optimized
If the dependencies are well declared, it will be ok
How to do it :
- remove the extends ScriptTestCase
- in default TestConfigSet getConfigSet(), the withSqlFile should pass the parameter getDataSourceFile() as well as now if and only if it is instanceof ScriptTestCase. Otherwise, it should pass null (here is the optimization, then no derby database will be created and thus the running time would be better without the file writing)
- all the tests that do not compile anymore with public String getDBType() must implement ScriptTestCase (AbstractJDBCTestCase, etc.)
- test that the tests still pass without any issue