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 private static final Logger logger
= Logger
.getLogger(DaoBaseTest
.class);
27 private TaxonDaoHibernateImpl daoBaseTester
;
30 * @throws java.lang.Exception
33 public static void setUpBeforeClass() throws Exception
{
37 * @throws java.lang.Exception
40 public static void tearDownAfterClass() throws Exception
{
44 * @throws java.lang.Exception
47 public void setUp() throws Exception
{
51 * @throws java.lang.Exception
54 public void tearDown() throws Exception
{
58 /************ TESTS ********************************/
61 * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase#getSession()}.
64 public void testGetSession() {
65 assertNotNull(daoBaseTester
.getSession());