private final RepositoryFactory factory = new RepositoryFactoryImpl();
private final RepositoryService service = new RepositoryServiceImpl();
public void testGetDefaultRepository() throws RepositoryException {
try {
Repository repo = factory.getRepository(null);
assertNotNull(repo);
} catch (RepositoryException e) {
// repository on top of spi2davex can only be initialized if the
// server is running. ok.
}
try {
System.setProperty(org.apache.jackrabbit.client.spi2davex.RepositoryConfigImpl.REPOSITORY_SPI2DAVEX_URI, org.apache.jackrabbit.client.spi2davex.RepositoryConfigImpl.DEFAULT_URI);
Repository repo = factory.getRepository(null);
assertNotNull(repo);
} catch (RepositoryException e) {
// repository on top of spi2davex can only be initialized if the
// server is running. ok.
}