Create and handle RevisionNotFoundException

This commit is contained in:
René Pfeuffer
2018-08-16 10:24:47 +02:00
parent 70039ad540
commit 9babeecea6
4 changed files with 36 additions and 2 deletions

View File

@@ -71,6 +71,15 @@ public class HgCatCommandTest extends AbstractHgCommandTestBase {
execute(request);
}
@Test(expected = RepositoryException.class)
public void testUnknownRevision() throws IOException, RepositoryException {
CatCommandRequest request = new CatCommandRequest();
request.setRevision("abc");
request.setPath("a.txt");
execute(request);
}
@Test
public void testSimpleStream() throws IOException, RepositoryException {
CatCommandRequest request = new CatCommandRequest();