Catch SvnCatCommand exception for trying to read content from nodes which are not files.

This commit is contained in:
Eduard Heimbuch
2022-09-30 11:01:27 +02:00
committed by Konstantin Schaper
parent fe82c967b8
commit ca047b7953
3 changed files with 25 additions and 25 deletions

View File

@@ -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();
}
}