}
@Before
public void create() throws CRException,
FileNotFoundException, URISyntaxException {
GenericConfiguration genericConf = new GenericConfiguration();
try {
URL confPath2 = new File(this.getClass()
.getResource("indexer.properties").toURI()).getParentFile()
.toURI().toURL();
GenericConfigurationFileLoader.load(genericConf,
confPath2.getPath() + "/indexer.properties");
} catch (IOException e) {
e.printStackTrace();
}
CRConfigUtil config = new CRConfigUtil(genericConf, "DEFAULT");
GenericConfiguration sc = new GenericConfiguration();
sc.set("indexLocations.1.path", "RAM_1");
sc.set("indexLocationClass",
"com.gentics.cr.lucene.indexer.index.LuceneSingleIndexLocation");
CRConfig singleConfig1 = new CRConfigUtil(sc, "sc1");
singleLoc1 = LuceneIndexLocation.getIndexLocation(singleConfig1);