\r
@RunWith(Suite.class)\r
@Suite.SuiteClasses(\r
- {\r
- //database\r
+ {\r
+ //database\r
// CdmDataSourceTest.class,\r
// DatabaseEnumTest.class,\r
\r
- //dao.common\r
+ //dao.common\r
// CdmEntityDaoBaseTest.class,\r
// DaoBaseTest.class,\r
- DefinedTermDaoImplTest.class,\r
- IdentifiableDaoBaseTest.class,\r
+ DefinedTermDaoImplTest.class,\r
+ IdentifiableDaoBaseTest.class\r
\r
- //dao.Taxon\r
+ //dao.Taxon\r
// TaxonDaoHibernateImplTest.class\r
- }\r
- )\r
+ }\r
+ )\r
public class CdmTestSuite {\r
- @SuppressWarnings("unused")\r
- private static final Logger logger = Logger.getLogger(CdmTestSuite.class);\r
+ @SuppressWarnings("unused")\r
+ private static final Logger logger = Logger.getLogger(CdmTestSuite.class);\r
\r
- // the class remains completely empty,\r
- // being used only as a holder for the above annotations\r
+ // the class remains completely empty,\r
+ // being used only as a holder for the above annotations\r
\r
- //console test //TODO test\r
- public static void consoleRun() {\r
- org.junit.runner.JUnitCore.runClasses(\r
- //database\r
- CdmDataSourceTest.class,\r
- DatabaseEnumTest.class,\r
- //dao.common\r
- CdmEntityDaoBaseTest.class,\r
- DaoBaseTest.class,\r
- DefinedTermDaoImplTest.class,\r
- IdentifiableDaoBaseTest.class,\r
- //dao.Taxon\r
- TaxonDaoHibernateImplTest.class\r
- );\r
- }\r
+ //console test //TODO test\r
+ public static void consoleRun() {\r
+ org.junit.runner.JUnitCore.runClasses(\r
+ //database\r
+ CdmDataSourceTest.class,\r
+ DatabaseEnumTest.class,\r
+ //dao.common\r
+ CdmEntityDaoBaseTest.class,\r
+ DaoBaseTest.class,\r
+ DefinedTermDaoImplTest.class,\r
+ IdentifiableDaoBaseTest.class,\r
+ //dao.Taxon\r
+ TaxonDaoHibernateImplTest.class\r
+ );\r
+ }\r
}
\ No newline at end of file
\r
@RunWith(Suite.class)\r
@Suite.SuiteClasses(\r
- {\r
- //MethodCacheImplTest.class,\r
- //GroupDaoHibernateImplTest.class,\r
- //OccurrenceDaoHibernateImplTest.class,\r
- CdmEntityDaoBaseTest.class,\r
- /*\r
- * FIXME:\r
- * DescriptionDaoHibernateImplTest.class Fails with "java.sql.BatchUpdateException: failed batch" on rollback after test,\r
- * this can be circumvented by manually editing org/unitils/dbunit/DbUnitModule.java in order to disable batched statements:\r
- * LINE 461: config.setProperty(FEATURE_BATCHED_STATEMENTS, "false");\r
- *\r
- * This reveals other errors during org.unitils.database.DatabaseModule.rollbackTransaction()\r
- * of test method testSaveClonedDescription():\r
- *\r
- * - in hsqldb:\r
- * Caused by: java.sql.SQLException: Violation of unique constraint SYS_PK_1209:\r
- * duplicate value(s) for column(s) ID in statement\r
- * [insert into TaxonBase (created, createdby_id, uuid, updated, updatedby_id, lsid_authority, lsid_lsid, lsid_namespace, lsid_object, lsid_revision, protectedtitlecache, titleCache, appendedphrase, doubtful, name_id, sec_id, usenamecache, excluded, taxonstatusunknown, taxonomicchildrencount, taxonomicparentcache_id, unplaced, DTYPE, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'Taxon', ?)]\r
- * at org.hsqldb.jdbc.Util.throwError(Util.java:58)\r
- *\r
- * - in h2:\r
- * Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation:\r
- * PRIMARY_KEY_C0 ON PUBLIC.TAXONBASE(ID); SQL statement:\r
- * insert into TaxonBase (created, createdby_id, uuid, updated, updatedby_id, lsid_authority, lsid_lsid, lsid_namespace, lsid_object, lsid_revision, protectedtitlecache, titleCache, appendedphrase, doubtful, name_id, sec_id, usenamecache, excluded, taxonstatusunknown, taxonomicchildrencount, taxonomicparentcache_id, unplaced, DTYPE, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'Taxon', ?) [23001-115]\r
- *\r
- */\r
- DescriptionDaoHibernateImplTest.class,\r
- TaxonDaoHibernateImplTest.class\r
-\r
- }\r
- )\r
+ {\r
+ //MethodCacheImplTest.class,\r
+ //GroupDaoHibernateImplTest.class,\r
+ //OccurrenceDaoHibernateImplTest.class,\r
+ CdmEntityDaoBaseTest.class,\r
+ /*\r
+ * FIXME:\r
+ * DescriptionDaoHibernateImplTest.class Fails with "java.sql.BatchUpdateException: failed batch" on rollback after test,\r
+ * this can be circumvented by manually editing org/unitils/dbunit/DbUnitModule.java in order to disable batched statements:\r
+ * LINE 461: config.setProperty(FEATURE_BATCHED_STATEMENTS, "false");\r
+ *\r
+ * This reveals other errors during org.unitils.database.DatabaseModule.rollbackTransaction()\r
+ * of test method testSaveClonedDescription():\r
+ *\r
+ * - in hsqldb:\r
+ * Caused by: java.sql.SQLException: Violation of unique constraint SYS_PK_1209:\r
+ * duplicate value(s) for column(s) ID in statement\r
+ * [insert into TaxonBase (created, createdby_id, uuid, updated, updatedby_id, lsid_authority, lsid_lsid, lsid_namespace, lsid_object, lsid_revision, protectedtitlecache, titleCache, appendedphrase, doubtful, name_id, sec_id, usenamecache, excluded, taxonstatusunknown, taxonomicchildrencount, taxonomicparentcache_id, unplaced, DTYPE, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'Taxon', ?)]\r
+ * at org.hsqldb.jdbc.Util.throwError(Util.java:58)\r
+ *\r
+ * - in h2:\r
+ * Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key violation:\r
+ * PRIMARY_KEY_C0 ON PUBLIC.TAXONBASE(ID); SQL statement:\r
+ * insert into TaxonBase (created, createdby_id, uuid, updated, updatedby_id, lsid_authority, lsid_lsid, lsid_namespace, lsid_object, lsid_revision, protectedtitlecache, titleCache, appendedphrase, doubtful, name_id, sec_id, usenamecache, excluded, taxonstatusunknown, taxonomicchildrencount, taxonomicparentcache_id, unplaced, DTYPE, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'Taxon', ?) [23001-115]\r
+ *\r
+ */\r
+ DescriptionDaoHibernateImplTest.class,\r
+ TaxonDaoHibernateImplTest.class\r
+\r
+ }\r
+ )\r
public class TestsShouldNotFailInSuite_3 {\r
\r
- // the class remains completely empty,\r
- // being used only as a holder for the above annotations\r
+ // the class remains completely empty,\r
+ // being used only as a holder for the above annotations\r
\r
}
\ No newline at end of file