use of org.apache.archiva.repository.mock.ManagedRepositoryContentMock in project archiva by apache.
the class ContentItemTest method setup.
@BeforeEach
public void setup() throws IOException {
this.repository = new ManagedRepositoryContentMock();
this.storage = new FilesystemStorage(Paths.get("target"), new DefaultFileLockManager());
this.asset = storage.getRoot();
}
use of org.apache.archiva.repository.mock.ManagedRepositoryContentMock in project archiva by apache.
the class BasicRepositoryGroupValidatorTest method createRepository.
protected EditableManagedRepository createRepository(String id, String name, Path location) throws IOException {
BasicManagedRepository repo = BasicManagedRepository.newFilesystemInstance(id, name, location);
repo.setLocation(location.toAbsolutePath().toUri());
repo.setContent(new ManagedRepositoryContentMock());
return repo;
}
use of org.apache.archiva.repository.mock.ManagedRepositoryContentMock in project archiva by apache.
the class BasicManagedRepositoryValidatorTest method createRepository.
protected EditableManagedRepository createRepository(String id, String name, Path location) throws IOException {
FileLockManager lockManager = new DefaultFileLockManager();
FilesystemStorage storage = new FilesystemStorage(location.toAbsolutePath(), lockManager);
BasicManagedRepository repo = new BasicManagedRepository(id, name, storage);
repo.setLocation(location.toAbsolutePath().toUri());
repo.setContent(new ManagedRepositoryContentMock());
return repo;
}
Aggregations