@Test public void generatesARandomPassword() throws Exception { String password = underTest.get(); assertThat(password, instanceOf(String.class)); assertThat(password.length(), greaterThanOrEqualTo(18)); }
@Override public String get() { return RandomStringUtils.randomAlphanumeric(PASSWORD_LENGTH); }
PasswordGenerator implements Supplier<String> { @Override public String get() { return RandomStringUtils.randomAlphanumeric(PASSWORD_LENGTH); } }
PasswordGenerator implements Supplier<String> { @Override public String get() { return RandomStringUtils.randomAlphanumeric(PASSWORD_LENGTH); }  }
PasswordGenerator implements Supplier<String> { @Override public String get() { return RandomStringUtils.randomAlphanumeric(PASSWORD_LENGTH); }  @Override String get(); }
PasswordGenerator implements Supplier<String> { @Override public String get() { return RandomStringUtils.randomAlphanumeric(PASSWORD_LENGTH); }  @Override String get();  }