Skip to content

Commit 54b3407

Browse files
committed
getBranches: filter added
1 parent 9e031e4 commit 54b3407

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/scm4j/vcs/svn/SVNVCSTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private void testExceptionThrowing(Exception testException, Method m, Object[] p
154154
reset(svn);
155155
doThrow(testException).when(svn).checkout(any(SVNURL.class), any(File.class));
156156
doThrow(testException).when(svn).getBranchUrl(null);
157-
doThrow(testException).when(svn).listEntries(Matchers.<List<String>>any(), anyString());
157+
doThrow(testException).when(svn).listEntries(Matchers.<List<String>>any(), anyString(), anyString());
158158
doThrow(testException).when(svn).getBranchFirstCommit(null);
159159
doThrow(testException).when(svn).revToSVNEntry(anyString(), any(Long.class));
160160
try {
@@ -186,7 +186,7 @@ private boolean wasMockedMethodInvoked() throws Exception {
186186
} catch (WantedButNotInvoked e1) {
187187
}
188188
try {
189-
verify(svn).listEntries(Matchers.<List<String>>any(), anyString());
189+
verify(svn).listEntries(Matchers.<List<String>>any(), anyString(), anyString());
190190
return true;
191191
} catch (WantedButNotInvoked e1) {
192192
}
@@ -395,13 +395,13 @@ public void testListEntriesSorting() throws Exception {
395395
Matchers.<Collection<SVNDirEntry>>any());
396396

397397
List<String> entries = new ArrayList<>();
398-
svn.listEntries(entries, "");
398+
svn.listEntries(entries, "", "");
399399
assertEquals(entries.get(0), entry1.getName());
400400
assertEquals(entries.get(1), entry2.getName());
401401
doReturn(Arrays.asList(entry1, entry1)).when(mockedRepo).getDir(anyString(), anyLong(), any(SVNProperties.class),
402402
Matchers.<Collection<SVNDirEntry>>any());
403403
entries = new ArrayList<>();
404-
svn.listEntries(entries, "");
404+
svn.listEntries(entries, "", "");
405405
assertEquals(entries.get(0), entry1.getName());
406406
assertEquals(entries.get(1), entry1.getName());
407407
}

0 commit comments

Comments
 (0)