List<String> rras = dao.getRRAList("default");
Assert.assertEquals(repository.getRraList().size(), rras.size());
}
private DefaultDataCollectionConfigDao instantiateDao(String fileName, boolean setConfigDirectory) throws Exception {
DefaultDataCollectionConfigDao dao = new DefaultDataCollectionConfigDao();
<BUG>File configFile = ConfigurationTestUtils.getFileForConfigFile(fileName);
if (setConfigDirectory) {</BUG>
File configFolder = new File(configFile.getParentFile(), "datacollection");
Assert.assertTrue(configFolder.isDirectory());
dao.setConfigDirectory(configFolder.getAbsolutePath());

List<String> rras = dao.getRRAList("default");
Assert.assertEquals(repository.getRraList().size(), rras.size());
}
private DefaultDataCollectionConfigDao instantiateDao(String fileName, boolean setConfigDirectory) throws Exception {
DefaultDataCollectionConfigDao dao = new DefaultDataCollectionConfigDao();
File configFile = new File("src/test/opennms-home/etc", fileName);
if (setConfigDirectory) {
File configFolder = new File(configFile.getParentFile(), "datacollection");
Assert.assertTrue(configFolder.isDirectory());
dao.setConfigDirectory(configFolder.getAbsolutePath());
