0c29fc4e19beeedaaeca9c7c2ac00ee599f14155
[cdmlib.git] / cdmlib-persistence / src / test / java / eu / etaxonomy / cdm / persistence / dao / hibernate / common / DaoBaseTest.java
1 /**
2 * Copyright (C) 2007 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.persistence.dao.hibernate.common;
11
12 import static org.junit.Assert.assertNotNull;
13
14 import org.junit.Test;
15 import org.unitils.spring.annotation.SpringApplicationContext;
16 import org.unitils.spring.annotation.SpringBeanByType;
17
18 import eu.etaxonomy.cdm.persistence.dao.hibernate.taxon.TaxonDaoHibernateImpl;
19 import eu.etaxonomy.cdm.test.integration.CdmIntegrationTest;
20
21 /**
22 * @author a.mueller
23 *
24 */
25 public class DaoBaseTest extends CdmIntegrationTest {
26
27
28 @SpringBeanByType
29 private TaxonDaoHibernateImpl daoBaseTester;
30
31 /************ TESTS ********************************/
32
33 /**
34 * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase#getSession()}.
35 */
36 @Test
37 public void testGetSession() {
38 assertNotNull(daoBaseTester.getSession());
39 }
40 }