use of org.apache.jackrabbit.core.TransientRepository in project pentaho-platform by pentaho.
the class AbstractJcrBackedUserRoleDaoTest method beforeAll.
@BeforeClass
public static void beforeAll() throws Exception {
Path repositoryPath = Files.createTempDirectory(TEST_REPOSITORY_LOCATION);
InputStream configStream = AbstractJcrBackedUserRoleDaoTest.class.getResourceAsStream(REPO_CONFIG_FILE);
Path repositoryLocation = repositoryPath.toAbsolutePath();
RepositoryConfig config = RepositoryConfig.create(configStream, repositoryLocation.toString());
repository = new TransientRepository(config);
Credentials creds = new SimpleCredentials(ADMIN_USER, ADMIN_USER_PASS.toCharArray());
adminSession = repository.login(creds);
initMocks();
}
Aggregations