X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Futil%2FFileUtilsTest.java;h=666b33b5aac66941893c74d2408d60aceb615f9d;hb=refs%2Fheads%2Fpatch%2FJAL-4281_idwidthandannotHeight_in_project;hp=1597718be10e054bff17405aebf6e984950887ba;hpb=b33b0a310733cc02690cc30ee513747afb2bf520;p=jalview.git diff --git a/test/jalview/util/FileUtilsTest.java b/test/jalview/util/FileUtilsTest.java index 1597718..666b33b 100644 --- a/test/jalview/util/FileUtilsTest.java +++ b/test/jalview/util/FileUtilsTest.java @@ -21,7 +21,6 @@ package jalview.util; import java.io.File; -import java.io.IOException; import java.util.List; import org.testng.Assert; @@ -98,16 +97,7 @@ public class FileUtilsTest @DataProvider(name = "dirnamesAndBasenames") public Object[][] dirnamesAndBasenames() { - String homeDir = null; - try - { - homeDir = new File(System.getProperty("user.home")) - .getCanonicalPath(); - } catch (IOException e) - { - System.err.println("Problem getting canonical home dir"); - e.printStackTrace(); - } + String homeDir = new File(System.getProperty("user.home")).getPath(); return new Object[][] { // -1=startsWith, 0=equals, 1=endsWith { "~/hello/sailor", homeDir, "/hello", "sailor", "~" }, // { "./examples/uniref50.fa", "./", "examples", "uniref50", "Users" }, //