SymbolicLinkHelper implements ISystemFileCommandsHelper { public static String createSymbolicLink(String link, String target) { if (isNotBlank(link) && isNotBlank(target)) { try { Path linkPath = Paths.get(link); Path targetPath = Paths.get(target); if (nonNull(linkPath) && nonNull(targetPath)) { createParentDirsIfNotExist(linkPath); Path pathObject = Files.createSymbolicLink(linkPath, targetPath); return pathObject.toString(); } } catch (Throwable thr) { thr.printStackTrace(); Log.error("Unexpected exception invoking method: %s", thr.getLocalizedMessage()); Log.exception(thr); } } return null; }  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 testCreateNull() throws IOException { assertNull(SymbolicLinkHelper.createSymbolicLink(null, null)); }
@Test public void testCreateEmpty() throws IOException { assertNull(SymbolicLinkHelper.createSymbolicLink("", "")); }