use of com.alibaba.cobar.manager.dao.xml.XMLFileLoaderPath in project cobar by alibaba.
the class CobarDaoTest method initData.
@Before
public void initData() {
Assert.assertNotNull(xmlPath);
xmlFileLoader = new XMLFileLoaderPath();
xmlFileLoader.setXmlPath(xmlPath);
cobarDao = new CobarDAOImple();
cobarDao.setXmlFileLoader(xmlFileLoader);
cobarXmlPath = xmlPath + System.getProperty("file.separator") + "cobar.xml";
XmlFile xmlFile = new XmlFile(cobarXmlPath, "cobars");
try {
xmlFile.init();
} catch (IOException e) {
logger.error(e.getMessage(), e);
Assert.fail();
}
read();
}
Aggregations