implement recursive option for subversion browse command

This commit is contained in:
Sebastian Sdorra
2013-01-19 13:10:10 +01:00
parent cc4604b60f
commit 9953a84567
2 changed files with 96 additions and 14 deletions

View File

@@ -158,6 +158,26 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase
assertNull(a.getDescription());
assertNull(a.getLastModified());
}
@Test
public void testRecursive() throws IOException, RepositoryException
{
BrowseCommandRequest request = new BrowseCommandRequest();
request.setRecursive(true);
BrowserResult result = createCommand().getBrowserResult(request);
assertNotNull(result);
List<FileObject> foList = result.getFiles();
assertNotNull(foList);
assertFalse(foList.isEmpty());
assertEquals(4, foList.size());
for ( FileObject fo : foList ){
System.out.println(fo);
}
}
/**
* Method description