]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/test/java/org/argeo/slc/hibernate/structure/tree/TreeSPathDaoHibernateTest.java
Improve Spring templates and defaults
[gpl/argeo-slc.git] / org.argeo.slc.core / src / test / java / org / argeo / slc / hibernate / structure / tree / TreeSPathDaoHibernateTest.java
index d383313a1e865ca8b7bae391bcd0cdf4df327c21..3cb906b247680446dde996a6847e08474e92fb81 100644 (file)
@@ -2,13 +2,12 @@ package org.argeo.slc.hibernate.structure.tree;
 \r
 import org.argeo.slc.core.structure.tree.TreeSPath;\r
 import org.argeo.slc.dao.structure.tree.TreeSPathDao;\r
-import org.argeo.slc.unit.SpringBasedTestCase;\r
+import org.argeo.slc.unit.AbstractSpringTestCase;\r
 \r
-public class TreeSPathDaoHibernateTest extends SpringBasedTestCase {\r
+public class TreeSPathDaoHibernateTest extends AbstractSpringTestCase {\r
 \r
        public void testCreate() {\r
-               TreeSPathDao treeSPathDao = (TreeSPathDao) getContext().getBean(\r
-                               "treeSPathDao");\r
+               TreeSPathDao treeSPathDao = getBean(TreeSPathDao.class);\r
 \r
                String pathParentStr = "/root/testParent";\r
                String pathStr = pathParentStr + "/test";\r