@Test public void testGenerate() { PasswordGenerator passwordGenerator = new PasswordGenerator(); String password = passwordGenerator.generate(); assertEquals(24, password.length()); }
public String generate() { return RandomStringUtils.random(PASSWORD_LENGTH, 0, PASSWORD_CHARACTERS.length(), false, false, PASSWORD_CHARACTERS.toCharArray(), new SecureRandom()); }
PasswordGenerator { public String generate() { return RandomStringUtils.random(PASSWORD_LENGTH, 0, PASSWORD_CHARACTERS.length(), false, false, PASSWORD_CHARACTERS.toCharArray(), new SecureRandom()); } }
PasswordGenerator { public String generate() { return RandomStringUtils.random(PASSWORD_LENGTH, 0, PASSWORD_CHARACTERS.length(), false, false, PASSWORD_CHARACTERS.toCharArray(), new SecureRandom()); }  }
PasswordGenerator { public String generate() { return RandomStringUtils.random(PASSWORD_LENGTH, 0, PASSWORD_CHARACTERS.length(), false, false, PASSWORD_CHARACTERS.toCharArray(), new SecureRandom()); }  String generate(); }
PasswordGenerator { public String generate() { return RandomStringUtils.random(PASSWORD_LENGTH, 0, PASSWORD_CHARACTERS.length(), false, false, PASSWORD_CHARACTERS.toCharArray(), new SecureRandom()); }  String generate();  }