use of org.graylog2.security.PasswordAlgorithmFactory in project graylog2-server by Graylog2.
the class PasswordAlgorithmFactoryTest method testDefaultPasswordAlgorithm.
@Test
public void testDefaultPasswordAlgorithm() throws Exception {
final PasswordAlgorithm defaultPasswordAlgorithm = mock(PasswordAlgorithm.class);
final PasswordAlgorithmFactory passwordAlgorithmFactory = new PasswordAlgorithmFactory(Collections.<String, PasswordAlgorithm>emptyMap(), defaultPasswordAlgorithm);
assertThat(passwordAlgorithmFactory.defaultPasswordAlgorithm()).isEqualTo(defaultPasswordAlgorithm);
}
Aggregations