ConfigureDatabaseDao extends JdbcDaoSupport { @Override protected void initDao() throws Exception { super.initDao(); if (!hasHostConsolidationStatusColumn()) { createHostConsolidationStatusColumn(); } if (!hasHostStartTypeColumn()) { createHostStartTypeColumn(); } if (!hasClusterConsolidationStatusColumn()) { createClusterConsolidationStatusColumn(); } if (!hasClusterLastConsolidatedColumn()) { createClusterLastConsolidatedColumn(); } if (!hasClusterManagerAlgorithmsInConfiguration()) { insertClusterManagerAlgorithmsInConfiguration(); } if (!hasAutonomiccsSystemVmTable()) { createAutonomiccsSystemVmTable(); } }    }
@Test public void initDaoTestTableConfigured() throws Exception { configureDbChecks(true); spy.initDao(); verifyDbChecks(); verifyDbAlterations(0); }