use of org.apache.jackrabbit.spi.commons.logging.Slf4jLogWriterProvider in project jackrabbit by apache.
the class RepositoryFactoryImplTest method testGetRepositoryWithLogger.
public void testGetRepositoryWithLogger() throws RepositoryException {
List<Object> lwprovider = new ArrayList<Object>();
lwprovider.add(null);
lwprovider.add(true);
lwprovider.add(new Slf4jLogWriterProvider());
Map<String, Object> params = new HashMap<String, Object>();
params.put("org.apache.jackrabbit.jcr2spi.RepositoryConfig", RepositoryConfigImpl.INSTANCE);
for (Object aLwprovider : lwprovider) {
params.put("org.apache.jackrabbit.spi.commons.logging.LogWriterProvider", aLwprovider);
Repository repo = factory.getRepository(params);
assertNotNull(repo);
}
}
Aggregations