use of com.alibaba.cobar.manager.dao.xml.PropertyDAOImple in project cobar by alibaba.
the class XmlFile method initProperty.
private void initProperty() {
String path = this.xmlPath + System.getProperty("file.separator") + "property.xml";
init(path, "pro");
PropertyDAOImple propertyDAO = new PropertyDAOImple();
propertyDAO.setXmlFileLoader(xmlFileLoader);
try {
propertyDAO.afterPropertiesSet();
} catch (Exception e) {
logger.error(e.getMessage(), e);
Assert.fail();
}
propertyDAO.addTime(1);
}
use of com.alibaba.cobar.manager.dao.xml.PropertyDAOImple in project cobar by alibaba.
the class PropertyDaoTest method initData.
@Before
public void initData() {
Assert.assertNotNull(xmlPath);
propertyXmlPath = xmlPath + System.getProperty("file.separator") + "property.xml";
xmlFileLoader = new XMLFileLoaderPath();
xmlFileLoader.setXmlPath(xmlPath);
propertyDao = new PropertyDAOImple();
propertyDao.setXmlFileLoader(xmlFileLoader);
XmlFile xmlFile = new XmlFile(propertyXmlPath, "pro");
try {
xmlFile.init();
} catch (Exception e) {
logger.error(e.getMessage(), e);
Assert.fail();
}
read();
}
Aggregations