Project

General

Profile

« Previous | Next » 

Revision 112b48ef

Added by Andreas Kohlbecker over 8 years ago

#5415 additional hibernate config file for specific integration test phases

View differences:

cdmlib-test/src/main/java/eu/etaxonomy/cdm/test/integration/CdmIntegrationTest.java
81 81
 * @author a.kohlbecker (2013)
82 82
 */
83 83
@SpringApplicationContext("file:./target/test-classes/eu/etaxonomy/cdm/applicationContext-test.xml")
84
@HibernateSessionFactory("/eu/etaxonomy/cdm/hibernate.cfg.xml")
84
// @HibernateSessionFactory is only needed for test phases like afterTestTearDown
85
// which are configured to run without a spring application context.
86
// for further details, see /cdmlib-test/src/main/resources/eu/etaxonomy/cdm/hibernate-test.cfg.xml
87
@HibernateSessionFactory({"/eu/etaxonomy/cdm/hibernate.cfg.xml", "/eu/etaxonomy/cdm/hibernate-test.cfg.xml"})
85 88
public abstract class CdmIntegrationTest extends UnitilsJUnit4 {
86 89
    protected static final Logger logger = Logger.getLogger(CdmIntegrationTest.class);
87 90

  

Also available in: Unified diff