b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * CDDL HEADER START
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * The contents of this file are subject to the terms of the
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Common Development and Distribution License, Version 1.0 only
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * (the "License"). You may not use this file except in compliance
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with the License.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * or http://forgerock.org/license/CDDLv1.0.html.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * See the License for the specific language governing permissions
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * and limitations under the License.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * When distributing Covered Code, include this CDDL HEADER in each
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * file and include the License file at legal-notices/CDDLv1_0.txt.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * If applicable, add the following below this CDDL HEADER, with the
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * fields enclosed by brackets "[]" replaced with your own identifying
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * information:
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Portions Copyright [yyyy] [name of copyright owner]
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * CDDL HEADER END
65e99be301d5a19db33f25841f671756e8dbb9b5ludovicp * Copyright 2006-2008 Sun Microsystems, Inc.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilsonimport org.opends.server.protocols.ldap.LDAPResultCode;
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * A set of test cases for the EncodePassword tool.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson // The path to the Directory Server configuration file.
d59b7e31153a4901927dbb1768c23b1ba58d2107coulbeck // The path to the temporary file containing a clear-text password.
d59b7e31153a4901927dbb1768c23b1ba58d2107coulbeck // The path to the temporary file containing an encoded password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Ensures that the Directory Server is running and gets the config file path.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * @throws Exception If an unexpected problem occurs.
014019918f7e3844f558f6159b8d41517254edc2lutoff configFilePath = DirectoryServer.getInstanceRoot() + File.separator +
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson passwordFilePath = TestCaseUtils.createTempFile("password");
d59b7e31153a4901927dbb1768c23b1ba58d2107coulbeck TestCaseUtils.createTempFile("{SHA}C5wmJdwh7wX2rU3fR8XyA4N6oyw=");
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Retrieves sets of invalid arguments that may not be used to initialize
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * the EncodePassword tool.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * @return Sets of invalid arguments that may not be used to initialize the
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * EncodePassword tool.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson ArrayList<String[]> argLists = new ArrayList<String[]>();
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson ArrayList<String> reasonList = new ArrayList<String>();
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--invalidLongArgument"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson reasonList.add("No storage scheme or encoded password");
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson reasonList.add("Both clear password and clear password file");
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson reasonList.add("Both encoded password and encoded password file");
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson Object[][] returnArray = new Object[argLists.size()][2];
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with sets of invalid arguments.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * @param args The set of arguments to use for the ListBackends
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * @param invalidReason The reason the provided set of arguments is invalid.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testInvalidArguments(String[] args, String invalidReason)
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse((EncodePassword.encodePassword(args, false, null, null) == 0),
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "Should have been invalid because: " + invalidReason);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --listSchemes argument.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--listSchemes"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --listSchemes and
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * --authPasswordSyntax arguments.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--listSchemes",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPassword and --storageScheme
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPassword, --storageScheme,
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * and --authPasswordSyntax arguments.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPasswordFile and
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * --storageScheme arguments.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPasswordFile, --storageScheme,
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * and --authPasswordSyntax arguments.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testEncodeClearAuthPasswordFromFile()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPassword and --storageScheme
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * arguments using an invalid storage scheme.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testEncodeClearPasswordWithInvalidScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPassword, --storageScheme,
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * and --authPasswordSyntax arguments using an invalid storage scheme.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testEncodeClearPasswordWithInvalidAuthScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPasswordFile and
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * --storageScheme arguments using an a password file that doesn't exist.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testEncodeClearPasswordFromMissingFile()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--clearPasswordFile", passwordFilePath + ".missing",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool with the --clearPasswordFile,
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * --storageScheme, and --authPasswordSyntax arguments using an a password
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * file that doesn't exist.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testEncodeClearAuthPasswordFromMissingFile()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--clearPasswordFile", passwordFilePath + ".missing",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a valid matching encoded password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareMatchingPasswordsNoScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a valid matching encoded password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareMatchingPasswordsWithScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
d59b7e31153a4901927dbb1768c23b1ba58d2107coulbeck * Tests the EncodePassword tool by performing a comparison of clear-text
d59b7e31153a4901927dbb1768c23b1ba58d2107coulbeck * with a valid matching encoded password.
d59b7e31153a4901927dbb1768c23b1ba58d2107coulbeck public void testCompareMatchingEncodedPasswordsFromFile()
d59b7e31153a4901927dbb1768c23b1ba58d2107coulbeck assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a valid matching auth password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareMatchingAuthPasswords()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--encodedPassword", "SHA1$dcKtMsOgc30=$MtHvXqXXJIRgxxw4xRXIY6ZLkQo=",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a non-matching encoded password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareNonMatchingPasswordsNoScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a non-matching encoded password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareNonMatchingPasswordsWithScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a non-matching auth password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareNonMatchingAuthPasswords()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--encodedPassword", "SHA1$dcKtMsOgc30=$MtHvXqXXJIRgxxw4xRXIY6ZLkQo=",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a valid matching encoded password using the LDAP compare result as an
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareMatchingPasswordsNoSchemeCompareResult()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--useCompareResultCode"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null),
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a valid matching encoded password using the LDAP compare result as an
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareMatchingPasswordsWithSchemeCompareResult()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--useCompareResultCode"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null),
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a valid matching auth password using the LDAP compare result as an
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareMatchingAuthPasswordsCompareResult()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--encodedPassword", "SHA1$dcKtMsOgc30=$MtHvXqXXJIRgxxw4xRXIY6ZLkQo=",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--useCompareResultCode"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null),
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a non-matching encoded password using the LDAP compare result as an
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareNonMatchingPasswordsNoSchemeCompareResult()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--useCompareResultCode"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null),
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a non-matching encoded password using the LDAP compare result as an
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareNonMatchingPasswordsWithSchemeCompareResult()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--useCompareResultCode"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null),
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a non-matching auth password using the LDAP compare result as an
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareNonMatchingAuthPasswordsCompareResult()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--encodedPassword", "SHA1$dcKtMsOgc30=$MtHvXqXXJIRgxxw4xRXIY6ZLkQo=",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--useCompareResultCode"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null),
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with a malformed encoded auth password.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareInvalidEncodedAuthPassword()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--encodedPassword", "malformedencodedauthpassword",
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with an encoded password that uses an unknown scheme.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareEncodedPasswordWithUnknownScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with an encoded password that uses an unknown scheme.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareEncodedPasswordWithUnknownSeparateScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * Tests the EncodePassword tool by performing a comparison of clear-text
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson * with an encoded auth password that uses an unknown scheme.
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson public void testCompareEncodedAuthPasswordWithUnknownScheme()
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson "--authPasswordSyntax"
b5f0b60b66cee9d4fdbac3c49c3aa68b840696feneil_a_wilson assertFalse(EncodePassword.encodePassword(args, false, null, null) == 0);
d20053afa42700e3ec7a6f6fb474622e8680f4ccneil_a_wilson * Tests the EncodePassword tool with the help options.
d20053afa42700e3ec7a6f6fb474622e8680f4ccneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);
d20053afa42700e3ec7a6f6fb474622e8680f4ccneil_a_wilson assertEquals(EncodePassword.encodePassword(args, false, null, null), 0);