1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.test.suite;
|
11
|
|
12
|
import org.apache.log4j.Logger;
|
13
|
import org.junit.runner.RunWith;
|
14
|
import org.junit.runners.Suite;
|
15
|
|
16
|
import eu.etaxonomy.cdm.database.CdmDataSourceTest;
|
17
|
import eu.etaxonomy.cdm.database.DatabaseTypeEnumTest;
|
18
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmEntityDaoBaseTest;
|
19
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBaseTest;
|
20
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.DefinedTermDaoImplTest;
|
21
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.IdentifiableDaoBaseTest;
|
22
|
import eu.etaxonomy.cdm.persistence.dao.hibernate.taxon.TaxonDaoHibernateImplTest;
|
23
|
|
24
|
|
25
|
@RunWith(Suite.class)
|
26
|
@Suite.SuiteClasses(
|
27
|
{
|
28
|
//database
|
29
|
// CdmDataSourceTest.class,
|
30
|
// DatabaseEnumTest.class,
|
31
|
|
32
|
//dao.common
|
33
|
// CdmEntityDaoBaseTest.class,
|
34
|
// DaoBaseTest.class,
|
35
|
DefinedTermDaoImplTest.class,
|
36
|
IdentifiableDaoBaseTest.class
|
37
|
|
38
|
//dao.Taxon
|
39
|
// TaxonDaoHibernateImplTest.class
|
40
|
}
|
41
|
)
|
42
|
public class CdmTestSuite {
|
43
|
@SuppressWarnings("unused")
|
44
|
private static final Logger logger = Logger.getLogger(CdmTestSuite.class);
|
45
|
|
46
|
// the class remains completely empty,
|
47
|
// being used only as a holder for the above annotations
|
48
|
|
49
|
//console test //TODO test
|
50
|
public static void consoleRun() {
|
51
|
org.junit.runner.JUnitCore.runClasses(
|
52
|
//database
|
53
|
CdmDataSourceTest.class,
|
54
|
DatabaseTypeEnumTest.class,
|
55
|
//dao.common
|
56
|
CdmEntityDaoBaseTest.class,
|
57
|
DaoBaseTest.class,
|
58
|
DefinedTermDaoImplTest.class,
|
59
|
IdentifiableDaoBaseTest.class,
|
60
|
//dao.Taxon
|
61
|
TaxonDaoHibernateImplTest.class
|
62
|
);
|
63
|
}
|
64
|
}
|