Search in sources :

Example 1 with InMemoryTemporaryStorage

use of org.eclipse.vorto.repository.core.impl.InMemoryTemporaryStorage 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)

Example 2 with InMemoryTemporaryStorage

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

the class BulkUploadTest method beforeEach.

@Override
public void beforeEach() throws Exception {
    super.beforeEach();
    bulkUploadHelper = new BulkUploadHelper(this.modelRepository, new InMemoryTemporaryStorage());
}
Also used : BulkUploadHelper(org.eclipse.vorto.repository.core.impl.utils.BulkUploadHelper) InMemoryTemporaryStorage(org.eclipse.vorto.repository.core.impl.InMemoryTemporaryStorage)

Aggregations

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