Add test for non existing cache file, issue #921
This commit is contained in:
parent
1c42e3eeb9
commit
b798438ecd
|
|
@ -130,4 +130,12 @@ public class TreeWalkerTest extends BaseCheckTestSupport
|
|||
treeWalker.setTabWidth(1);
|
||||
treeWalker.setCacheFile(temporaryFolder.newFile().getPath());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNonExistingCacheFileDoesNotThrowException()
|
||||
{
|
||||
final TreeWalker treeWalker = new TreeWalker();
|
||||
treeWalker.setCacheFile("/invalid");
|
||||
treeWalker.destroy();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue