implement recursive option for mercurial browse command

This commit is contained in:
Sebastian Sdorra
2013-01-19 13:22:27 +01:00
parent 9953a84567
commit d34ce7b0c9
4 changed files with 63 additions and 14 deletions

View File

@@ -159,6 +159,32 @@ public class HgBrowseCommandTest extends AbstractHgCommandTestBase
assertNull(a.getLastModified());
}
/**
* Method description
*
*
* @throws IOException
* @throws RepositoryException
*/
@Test
public void testRecursive() throws IOException, RepositoryException
{
BrowseCommandRequest request = new BrowseCommandRequest();
request.setRecursive(true);
BrowserResult result = new HgBrowseCommand(cmdContext,
repository).getBrowserResult(request);
assertNotNull(result);
List<FileObject> foList = result.getFiles();
assertNotNull(foList);
assertFalse(foList.isEmpty());
assertEquals(5, foList.size());
}
//~--- get methods ----------------------------------------------------------
/**