/** * Overriding the default system config properties with cluster-related config. */ @Override protected void extractConfigFilesForTests() throws Exception { extractConfigFile(REPO_CONF_PROPERTY, getRepositoryConfigFileStream(), EXTRACTED_REPO_CONF_FILE); extractConfigFile(JACKRABBIT_CLUSTER_REPO_CONF_PROPERTY, getJackrabbitClusterRepositoryConfigFileStream(), EXTRACTED_JACKRABBIT_CLUSTER_REPO_CONF_FILE); extractConfigFile(JACKRABBIT_REPO_CONF_PROPERTY, getJackrabbitRepositoryConfigFileStream(), EXTRACTED_JACKRABBIT_REPO_CONF_FILE); }
@Override @Before public void setUp() throws Exception { // We require an instance of DefaultRepositoryManager with custom magnolia configuration properties setRepositoryConfigFileName("/test-cluster-repositories.xml"); super.setUp(); defaultRepositoryManager = (DefaultRepositoryManager) Components.getComponent(RepositoryManager.class); }