Add more test coverage for ListFiles

This change adds two tests for ListFiles, which covers the code paths
when 'base' or 'query' field is set.

Bug: Issue 6189
Change-Id: I6afd2881abb46732ea9a973d1ba7f21d6b23506a
This commit is contained in:
Changcheng Xiao
2017-07-04 15:35:33 +02:00
parent 0bfd454d3e
commit ac5d9c0229
4 changed files with 72 additions and 0 deletions

View File

@@ -69,6 +69,8 @@ public interface RevisionApi {
Map<String, FileInfo> files(int parentNum) throws RestApiException;
List<String> queryFiles(String query) throws RestApiException;
FileApi file(String path);
CommitInfo commit(boolean addLinks) throws RestApiException;
@@ -238,6 +240,11 @@ public interface RevisionApi {
throw new NotImplementedException();
}
@Override
public List<String> queryFiles(String query) throws RestApiException {
throw new NotImplementedException();
}
@Override
public FileApi file(String path) {
throw new NotImplementedException();