@Test public void testCreateSecurePassword() throws Exception { String password1 = securePasswordHelper.createSecurePassword(); Assert.assertNotNull(password1); Assert.assertEquals(SecurePasswordHelper.DEFAULT_SECURE_PASSWORD_LENGTH, password1.length()); String password2 = securePasswordHelper.createSecurePassword(); Assert.assertNotNull(password2); Assert.assertEquals(SecurePasswordHelper.DEFAULT_SECURE_PASSWORD_LENGTH, password2.length()); Assert.assertFalse((password1.equals(password2))); }
public String createSecurePassword() { return createSecurePassword(null, null, null, null, null, null); }
SecurePasswordHelper { public String createSecurePassword() { return createSecurePassword(null, null, null, null, null, null); } }
SecurePasswordHelper { public String createSecurePassword() { return createSecurePassword(null, null, null, null, null, null); }  }
SecurePasswordHelper { public String createSecurePassword() { return createSecurePassword(null, null, null, null, null, null); }  String createSecurePassword(); String createSecurePassword(Integer length, Integer minLowercaseLetters, Integer minUppercaseLetters, Integer minDigits, Integer minPunctuation, Integer minWhitespace); }
SecurePasswordHelper { public String createSecurePassword() { return createSecurePassword(null, null, null, null, null, null); }  String createSecurePassword(); String createSecurePassword(Integer length, Integer minLowercaseLetters, Integer minUppercaseLetters, Integer minDigits, Integer minPunctuation, Integer minWhitespace); final static int DEFAULT_SECURE_PASSWORD_LENGTH; final static int DEFAULT_SECURE_PASSWORD_MIN_LOWERCASE_LETTERS; final static int DEFAULT_SECURE_PASSWORD_MIN_UPPERCASE_LETTERS; final static int DEFAULT_SECURE_PASSWORD_MIN_DIGITS; final static int DEFAULT_SECURE_PASSWORD_MIN_PUNCTUATION; final static int DEFAULT_SECURE_PASSWORD_MIN_WHITESPACE; }