mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Create and handle RevisionNotFoundException
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user