mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GitTestRepositoryManager stub implementation to fix tests
This commit is contained in:
@@ -22,6 +22,7 @@ import git4idea.repo.GitRepositoryManager;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -29,39 +30,38 @@ import java.util.List;
|
||||
*/
|
||||
public class GitTestRepositoryManager implements GitRepositoryManager {
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public GitRepository getRepositoryForRoot(@Nullable VirtualFile root) {
|
||||
throw new UnsupportedOperationException();
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public GitRepository getRepositoryForFile(@NotNull VirtualFile file) {
|
||||
throw new UnsupportedOperationException();
|
||||
return null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public List<GitRepository> getRepositories() {
|
||||
throw new UnsupportedOperationException();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean moreThanOneRoot() {
|
||||
throw new UnsupportedOperationException();
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addListenerToAllRepositories(@NotNull GitRepositoryChangeListener listener) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateRepository(VirtualFile root, GitRepository.TrackedTopic... topics) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateAllRepositories(GitRepository.TrackedTopic... topics) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user