Cleanup (pointless exceptions)

This commit is contained in:
Roman Shevchenko
2014-04-03 21:34:41 +02:00
parent bd5f93c5f0
commit d70e1ac0ef
@@ -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};