use of org.apache.archiva.repository.mock.RemoteRepositoryContentMock in project archiva by apache.
the class BasicRemoteRepositoryValidatorTest method createRepository.
protected EditableRemoteRepository createRepository(String id, String name, Path location) throws IOException {
FileLockManager lockManager = new DefaultFileLockManager();
FilesystemStorage storage = new FilesystemStorage(location.toAbsolutePath(), lockManager);
BasicRemoteRepository repo = new BasicRemoteRepository(id, name, storage);
repo.setLocation(location.toAbsolutePath().toUri());
repo.setContent(new RemoteRepositoryContentMock());
return repo;
}
Aggregations