Search in sources :

Example 1 with JcrModelRepository

use of org.eclipse.vorto.repository.core.impl.JcrModelRepository in project vorto by eclipse.

the class AbstractIntegrationTest method beforeEach.

public void beforeEach() throws Exception {
    super.beforeEach();
    startRepositoryWithConfiguration(new ClassPathResource("vorto-repository.json").getInputStream());
    modelRepository = new JcrModelRepository();
    modelRepository.setUploadStorage(new InMemoryTemporaryStorage());
    modelRepository.setSession(jcrSession());
    modelRepository.createValidators();
    modelRepository.setModelSearchUtil(modelSearchUtil);
}
Also used : JcrModelRepository(org.eclipse.vorto.repository.core.impl.JcrModelRepository) ClassPathResource(org.springframework.core.io.ClassPathResource) InMemoryTemporaryStorage(org.eclipse.vorto.repository.core.impl.InMemoryTemporaryStorage)

Aggregations

InMemoryTemporaryStorage (org.eclipse.vorto.repository.core.impl.InMemoryTemporaryStorage)1 JcrModelRepository (org.eclipse.vorto.repository.core.impl.JcrModelRepository)1 ClassPathResource (org.springframework.core.io.ClassPathResource)1