mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
Implement new limit/offset rule for git and svn
Directories shall no longer be taken into account for limit/offset calculations.
This commit is contained in:
@@ -189,7 +189,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase
|
||||
|
||||
Collection<FileObject> foList = result.getFile().getChildren();
|
||||
|
||||
assertThat(foList).extracting("name").containsExactly("c");
|
||||
assertThat(foList).extracting("name").containsExactly("c", "a.txt");
|
||||
assertThat(result.getFile().isTruncated()).isTrue();
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase
|
||||
|
||||
Collection<FileObject> foList = result.getFile().getChildren();
|
||||
|
||||
assertThat(foList).extracting("name").containsExactly("a.txt");
|
||||
assertThat(foList).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -233,7 +233,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase
|
||||
public void testRecursiveLimitInSubDir() throws IOException {
|
||||
BrowseCommandRequest request = new BrowseCommandRequest();
|
||||
|
||||
request.setLimit(2);
|
||||
request.setLimit(1);
|
||||
request.setRecursive(true);
|
||||
|
||||
FileObject root = createCommand().getBrowserResult(request).getFile();
|
||||
@@ -256,7 +256,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase
|
||||
public void testRecursiveOffset() throws IOException {
|
||||
BrowseCommandRequest request = new BrowseCommandRequest();
|
||||
|
||||
request.setOffset(2);
|
||||
request.setOffset(1);
|
||||
request.setRecursive(true);
|
||||
|
||||
FileObject root = createCommand().getBrowserResult(request).getFile();
|
||||
|
||||
Reference in New Issue
Block a user