mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-21 15:59:48 +01:00
Catch SvnCatCommand exception for trying to read content from nodes which are not files.
This commit is contained in:
committed by
Konstantin Schaper
parent
fe82c967b8
commit
ca047b7953
@@ -135,4 +135,15 @@ public class SvnCatCommandTest extends AbstractSvnCommandTestBase {
|
||||
|
||||
return content;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldNotThrowExceptionForNonFileNodeCatCommand() throws IOException {
|
||||
CatCommandRequest request = new CatCommandRequest();
|
||||
request.setPath("/");
|
||||
request.setRevision("1");
|
||||
|
||||
InputStream catResultStream = new SvnCatCommand(createContext()).getCatResultStream(request);
|
||||
|
||||
catResultStream.close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user