SolrOperationsService { public void createDirs(String dataPath, String confPath) { File dataDir = new File(dataPath); File dir = new File(this.dataDir); File confDir = new File(confPath); dir.mkdirs(); dataDir.mkdirs(); confDir.mkdirs(); } SolrOperationsService(String solrHosts, String zkHosts, String dataDir, Boolean isCloud); void createCore(StratioStreamingMessage message); void createDirs(String dataPath, String confPath); void createSolrConfig(String confPath); void createSolrSchema(List<ColumnNameTypeValue> columns, String confpath); List<String> getCoreList();  }
@Test public void testCreateDirs() throws Exception { String testDataDir= DATA_FOLDER.getRoot().getAbsolutePath() + File.separator + "testData"; String testConfDir= DATA_FOLDER.getRoot().getAbsolutePath() + File.separator + "testConf"; service.createDirs(testDataDir, testConfDir); assertTrue("Expected true value not found", new File(testDataDir).isDirectory()); assertTrue("Expected true value not found", new File(testConfDir).isDirectory()); }