(no commit message)
[cdmlib.git] / cdmlib-persistence / src / test / java / eu / etaxonomy / cdm / persistence / dao / hibernate / common / DaoBaseTest.java
1 /**
2 *
3 */
4 package eu.etaxonomy.cdm.persistence.dao.hibernate.common;
5
6 import static org.junit.Assert.*;
7
8 import org.apache.log4j.Logger;
9 import org.junit.After;
10 import org.junit.AfterClass;
11 import org.junit.Before;
12 import org.junit.BeforeClass;
13 import org.junit.Test;
14 import org.springframework.beans.factory.annotation.Autowired;
15
16 import eu.etaxonomy.cdm.persistence.dao.hibernate.taxon.TaxonDaoHibernateImpl;
17 import eu.etaxonomy.cdm.test.unit.CdmUnitTestBase;
18
19 /**
20 * @author a.mueller
21 *
22 */
23 public class DaoBaseTest extends CdmUnitTestBase{
24 private static final Logger logger = Logger.getLogger(DaoBaseTest.class);
25
26 @Autowired
27 private TaxonDaoHibernateImpl daoBaseTester;
28
29 /**
30 * @throws java.lang.Exception
31 */
32 @BeforeClass
33 public static void setUpBeforeClass() throws Exception {
34 }
35
36 /**
37 * @throws java.lang.Exception
38 */
39 @AfterClass
40 public static void tearDownAfterClass() throws Exception {
41 }
42
43 /**
44 * @throws java.lang.Exception
45 */
46 @Before
47 public void setUp() throws Exception {
48 }
49
50 /**
51 * @throws java.lang.Exception
52 */
53 @After
54 public void tearDown() throws Exception {
55 }
56
57
58 /************ TESTS ********************************/
59
60 /**
61 * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase#getSession()}.
62 */
63 @Test
64 public void testGetSession() {
65 assertNotNull(daoBaseTester.getSession());
66 }
67
68 }