4 package eu
.etaxonomy
.cdm
.persistence
.dao
.hibernate
.common
;
6 import static org
.junit
.Assert
.*;
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
;
16 import eu
.etaxonomy
.cdm
.persistence
.dao
.hibernate
.taxon
.TaxonDaoHibernateImpl
;
17 import eu
.etaxonomy
.cdm
.test
.unit
.CdmUnitTestBase
;
23 public class DaoBaseTest
extends CdmUnitTestBase
{
24 @SuppressWarnings("unused")
25 private static final Logger logger
= Logger
.getLogger(DaoBaseTest
.class);
28 private TaxonDaoHibernateImpl daoBaseTester
;
31 * @throws java.lang.Exception
34 public static void setUpBeforeClass() throws Exception
{
38 * @throws java.lang.Exception
41 public static void tearDownAfterClass() throws Exception
{
45 * @throws java.lang.Exception
48 public void setUp() throws Exception
{
52 * @throws java.lang.Exception
55 public void tearDown() throws Exception
{
59 /************ TESTS ********************************/
62 * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase#getSession()}.
65 public void testGetSession() {
66 assertNotNull(daoBaseTester
.getSession());