mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (pointless exceptions)
This commit is contained in:
@@ -87,7 +87,7 @@ public class FileUtilLightTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isAncestor() throws Exception {
|
||||
public void isAncestor() {
|
||||
assertTrue(FileUtil.isAncestor("/", "/a/", true));
|
||||
assertTrue(FileUtil.isAncestor("/a/b/c", "/a/b/c/d/e/f", true));
|
||||
assertTrue(FileUtil.isAncestor("/a/b/c/", "/a/b/c/d/e/f", true));
|
||||
@@ -105,7 +105,7 @@ public class FileUtilLightTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRemoveAncestors() throws Exception {
|
||||
public void testRemoveAncestors() {
|
||||
List<String> data = Arrays.asList("/a/b/c", "/a", "/a/b", "/d/e", "/b/c", "/a/d", "/b/c/ttt", "/a/ewq.euq");
|
||||
String[] expected = {"/a","/b/c","/d/e"};
|
||||
@SuppressWarnings("unchecked") Collection<String> result = FileUtil.removeAncestors(data, Convertor.SELF, PairProcessor.TRUE);
|
||||
@@ -113,7 +113,7 @@ public class FileUtilLightTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCheckImmediateChildren() throws Exception {
|
||||
public void testCheckImmediateChildren() {
|
||||
String root = "/a";
|
||||
String[] data = {"/a/b/c", "/a", "/a/b", "/d/e", "/b/c", "/a/d", "/a/b/c/d/e"};
|
||||
ThreeState[] expected1 = {ThreeState.UNSURE, ThreeState.YES, ThreeState.YES, ThreeState.NO, ThreeState.NO, ThreeState.YES, ThreeState.UNSURE};
|
||||
|
||||
Reference in New Issue
Block a user