fixing transaction problems
[cdmlib.git] / cdmlib-persistence / src / test / java / eu / etaxonomy / cdm / persistence / dao / hibernate / common / DaoBaseTest.java
index 8274e9a0955650f2bc2142d3b0e97fda699f3fa7..ed90a0bbfd55dd13ba9ff75cf366e778f2eaff22 100644 (file)
@@ -1,8 +1,8 @@
 /**\r
 * Copyright (C) 2007 EDIT\r
-* European Distributed Institute of Taxonomy \r
+* European Distributed Institute of Taxonomy\r
 * http://www.e-taxonomy.eu\r
-* \r
+*\r
 * The contents of this file are subject to the Mozilla Public License Version 1.1\r
 * See LICENSE.TXT at the top of this package for the full license terms.\r
 */\r
@@ -12,6 +12,7 @@ package eu.etaxonomy.cdm.persistence.dao.hibernate.common;
 import static org.junit.Assert.assertNotNull;\r
 \r
 import org.junit.Test;\r
+import org.unitils.spring.annotation.SpringApplicationContext;\r
 import org.unitils.spring.annotation.SpringBeanByType;\r
 \r
 import eu.etaxonomy.cdm.persistence.dao.hibernate.taxon.TaxonDaoHibernateImpl;\r
@@ -22,19 +23,18 @@ import eu.etaxonomy.cdm.test.integration.CdmIntegrationTest;
  *\r
  */\r
 public class DaoBaseTest  extends CdmIntegrationTest {\r
-       \r
-       \r
-       @SpringBeanByType\r
-       private  TaxonDaoHibernateImpl daoBaseTester;\r
-       \r
-/************ TESTS ********************************/\r
 \r
-       /**\r
-        * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase#getSession()}.\r
-        */\r
-       @Test\r
-       public void testGetSession() {\r
-               assertNotNull(daoBaseTester.getSession());\r
-       }\r
 \r
+    @SpringBeanByType\r
+    private  TaxonDaoHibernateImpl daoBaseTester;\r
+\r
+/************ TESTS ********************************/\r
+\r
+    /**\r
+     * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.common.DaoBase#getSession()}.\r
+     */\r
+    @Test\r
+    public void testGetSession() {\r
+        assertNotNull(daoBaseTester.getSession());\r
+    }\r
 }\r