SymbolicLinkHelper implements ISystemFileCommandsHelper { public static boolean isSymbolicLink(String path) { if (nonNull(path)) { try { Path filePath = Paths.get(path); if (nonNull(filePath)) { return Files.isSymbolicLink(filePath); } } catch (Exception thr) { Log.exception(thr); } } return false; }  static boolean isSymbolicLinkCapable(); static boolean isSymbolicLink(String path); static String readSymbolicLink(String link); static long getLastModifiedTime(String link); static boolean exists(String path); static String move(String source, String target); static String createSymbolicLink(String link, String target);  }
@Test public void testSymbolicLink() throws IOException { Path tempLink = createTempLink(); assertTrue(SymbolicLinkHelper.isSymbolicLink(tempLink.toString())); }
@Test public void testNotASymbolicLink() throws IOException { assertFalse(SymbolicLinkHelper.isSymbolicLink(tempFile.toString())); }
@Test public void testSymbolicLinkNull() throws IOException { assertFalse(SymbolicLinkHelper.isSymbolicLink(null)); }
@Test public void testSymbolicLinkEmpty() throws IOException { assertFalse(SymbolicLinkHelper.isSymbolicLink("")); }