+++ /dev/null
-package org.argeo.slc.hibernate.structure.tree;\r
-\r
-import org.argeo.slc.core.structure.tree.TreeSPath;\r
-import org.argeo.slc.dao.structure.tree.TreeSPathDao;\r
-import org.argeo.slc.unit.AbstractSpringTestCase;\r
-\r
-public class TreeSPathDaoHibernateTest extends AbstractSpringTestCase {\r
-\r
- public void testCreate() {\r
- TreeSPathDao treeSPathDao = getBean(TreeSPathDao.class);\r
-\r
- String pathParentStr = "/root/testParent";\r
- String pathStr = pathParentStr + "/test";\r
- TreeSPath path = TreeSPath.parseToCreatePath(pathStr);\r
- treeSPathDao.create(path);\r
-\r
- TreeSPath pathChild = treeSPathDao.getTreeSPath(pathStr);\r
- assertEquals(path, pathChild);\r
-\r
- TreeSPath pathParent = treeSPathDao.getTreeSPath(pathParentStr);\r
- assertEquals(path.getParent(), pathParent);\r
- }\r
-\r
- @Override\r
- protected String getApplicationContextLocation() {\r
- return "org/argeo/slc/hibernate/applicationContext.xml";\r
- }\r
-\r
-}\r