mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-23 15:00:49 +01:00
Remove unnecessary check
This commit is contained in:
@@ -64,6 +64,22 @@ class HgFileviewCommandResultReaderTest {
|
||||
assertThat(fileObject.isTruncated()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldParseSubDirectory() throws IOException {
|
||||
HgFileviewCommandResultReader reader = new MockInput()
|
||||
.dir("dir")
|
||||
.file("dir/a.txt")
|
||||
.build();
|
||||
|
||||
FileObject fileObject = reader.parseResult();
|
||||
|
||||
assertThat(fileObject.isDirectory()).isTrue();
|
||||
assertThat(fileObject.getName()).isEqualTo("dir");
|
||||
assertThat(fileObject.getChildren())
|
||||
.extracting("name")
|
||||
.containsExactly("a.txt");
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldParseRecursiveResult() throws IOException {
|
||||
HgFileviewCommandResultReader reader = new MockInput()
|
||||
|
||||
Reference in New Issue
Block a user