@Test public void testDefaultOutputPath() { Path path = Paths.get("."); String calculateDefaultOutputDirectory = TlsToolkitStandaloneCommandLine.calculateDefaultOutputDirectory(path); assertEquals("../" + path.toAbsolutePath().normalize().getFileName().toString(), calculateDefaultOutputDirectory); }
protected static String calculateDefaultOutputDirectory(Path currentPath) { Path currentAbsolutePath = currentPath.toAbsolutePath(); Path parent = currentAbsolutePath.getParent(); if (parent == currentAbsolutePath.getRoot()) { return parent.toString(); } else { Path currentNormalizedPath = currentAbsolutePath.normalize(); return "../" + currentNormalizedPath.getFileName().toString(); } }
TlsToolkitStandaloneCommandLine extends BaseCommandLine { protected static String calculateDefaultOutputDirectory(Path currentPath) { Path currentAbsolutePath = currentPath.toAbsolutePath(); Path parent = currentAbsolutePath.getParent(); if (parent == currentAbsolutePath.getRoot()) { return parent.toString(); } else { Path currentNormalizedPath = currentAbsolutePath.normalize(); return "../" + currentNormalizedPath.getFileName().toString(); } } }
TlsToolkitStandaloneCommandLine extends BaseCommandLine { protected static String calculateDefaultOutputDirectory(Path currentPath) { Path currentAbsolutePath = currentPath.toAbsolutePath(); Path parent = currentAbsolutePath.getParent(); if (parent == currentAbsolutePath.getRoot()) { return parent.toString(); } else { Path currentNormalizedPath = currentAbsolutePath.normalize(); return "../" + currentNormalizedPath.getFileName().toString(); } } TlsToolkitStandaloneCommandLine(); protected  TlsToolkitStandaloneCommandLine(PasswordUtil passwordUtil); }
TlsToolkitStandaloneCommandLine extends BaseCommandLine { protected static String calculateDefaultOutputDirectory(Path currentPath) { Path currentAbsolutePath = currentPath.toAbsolutePath(); Path parent = currentAbsolutePath.getParent(); if (parent == currentAbsolutePath.getRoot()) { return parent.toString(); } else { Path currentNormalizedPath = currentAbsolutePath.normalize(); return "../" + currentNormalizedPath.getFileName().toString(); } } TlsToolkitStandaloneCommandLine(); protected  TlsToolkitStandaloneCommandLine(PasswordUtil passwordUtil); static void main(String[] args); StandaloneConfig createConfig(); }
TlsToolkitStandaloneCommandLine extends BaseCommandLine { protected static String calculateDefaultOutputDirectory(Path currentPath) { Path currentAbsolutePath = currentPath.toAbsolutePath(); Path parent = currentAbsolutePath.getParent(); if (parent == currentAbsolutePath.getRoot()) { return parent.toString(); } else { Path currentNormalizedPath = currentAbsolutePath.normalize(); return "../" + currentNormalizedPath.getFileName().toString(); } } TlsToolkitStandaloneCommandLine(); protected  TlsToolkitStandaloneCommandLine(PasswordUtil passwordUtil); static void main(String[] args); StandaloneConfig createConfig(); static final String OUTPUT_DIRECTORY_ARG; static final String NIFI_PROPERTIES_FILE_ARG; static final String KEY_STORE_PASSWORD_ARG; static final String TRUST_STORE_PASSWORD_ARG; static final String KEY_PASSWORD_ARG; static final String HOSTNAMES_ARG; static final String OVERWRITE_ARG; static final String CLIENT_CERT_DN_ARG; static final String CLIENT_CERT_PASSWORD_ARG; static final String GLOBAL_PORT_SEQUENCE_ARG; static final String NIFI_DN_PREFIX_ARG; static final String NIFI_DN_SUFFIX_ARG; static final String SUBJECT_ALTERNATIVE_NAMES; static final String DEFAULT_OUTPUT_DIRECTORY; static final String DESCRIPTION; }