1
|
/**
|
2
|
* Copyright (C) 2017 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
|
package eu.etaxonomy.cdm;
|
10
|
|
11
|
import org.hibernate.SessionFactory;
|
12
|
import org.junit.runner.RunWith;
|
13
|
import org.unitils.database.annotations.Transactional;
|
14
|
import org.unitils.database.util.TransactionMode;
|
15
|
import org.unitils.spring.annotation.SpringApplicationContext;
|
16
|
import org.unitils.spring.annotation.SpringBeanByType;
|
17
|
|
18
|
import eu.etaxonomy.cdm.test.integration.CdmIntegrationTest;
|
19
|
import unitils.AlternativeUnitilsJUnit4TestClassRunner;
|
20
|
|
21
|
/**
|
22
|
* Base test class for pure service layer tests.
|
23
|
*
|
24
|
* The application context will not contain any Webservice application context!
|
25
|
*
|
26
|
* @author a.kohlbecker
|
27
|
* @since Nov 24, 2017
|
28
|
*
|
29
|
*/
|
30
|
@RunWith(AlternativeUnitilsJUnit4TestClassRunner.class)
|
31
|
@SpringApplicationContext("file:./src/test/resources/eu/etaxonomy/cdm/applicationContext-service-integration.xml")
|
32
|
@Transactional(TransactionMode.DISABLED)
|
33
|
public abstract class CdmVaadinIntegrationTest extends CdmIntegrationTest {
|
34
|
|
35
|
@SpringBeanByType
|
36
|
protected SessionFactory sessionFactory;
|
37
|
|
38
|
|
39
|
}
|