use of org.apache.jackrabbit.api.JackrabbitRepository in project jackrabbit-oak by apache.
the class SimpleRepositoryFactoryTest method testRepositoryService.
@Test
public void testRepositoryService() throws Exception {
Map<String, String> config = new HashMap<String, String>();
config.put("org.apache.jackrabbit.repository.home", tmpFolder.getRoot().getAbsolutePath());
config.put("org.apache.jackrabbit.oak.repository.configFile", path("oak-base-config.json") + "," + path("oak-tar-config.json"));
Repository repository = JcrUtils.getRepository(config);
assertNotNull(repository);
((JackrabbitRepository) repository).shutdown();
}
Aggregations