Search in sources :

Example 1 with ProxyRepositoryConfig

use of org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig in project rdf4j by eclipse.

the class LocalRepositoryManagerTest method setUp.

/**
 * @throws java.lang.Exception
 */
@Before
public void setUp() throws Exception {
    datadir = tempDir.newFolder("local-repositorymanager-test");
    manager = new LocalRepositoryManager(datadir);
    manager.initialize();
    // Create configurations for the SAIL stack, and the repository
    // implementation.
    manager.addRepositoryConfig(new RepositoryConfig(TEST_REPO, new SailRepositoryConfig(new MemoryStoreConfig(true))));
    // Create configuration for proxy repository to previous repository.
    manager.addRepositoryConfig(new RepositoryConfig(PROXY_ID, new ProxyRepositoryConfig(TEST_REPO)));
}
Also used : SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig) ProxyRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig) RepositoryConfig(org.eclipse.rdf4j.repository.config.RepositoryConfig) MemoryStoreConfig(org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig) ProxyRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig) SailRepositoryConfig(org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig) Before(org.junit.Before)

Aggregations

RepositoryConfig (org.eclipse.rdf4j.repository.config.RepositoryConfig)1 ProxyRepositoryConfig (org.eclipse.rdf4j.repository.sail.config.ProxyRepositoryConfig)1 SailRepositoryConfig (org.eclipse.rdf4j.repository.sail.config.SailRepositoryConfig)1 MemoryStoreConfig (org.eclipse.rdf4j.sail.memory.config.MemoryStoreConfig)1 Before (org.junit.Before)1