@Test void testHashSame() { String plaintext = "password"; String secondPlaintext = "password"; String result = hashService.hash(plaintext); String secondResult = hashService.hash(secondPlaintext); assertEquals(plaintext, result); assertEquals(secondPlaintext, secondResult); assertEquals(result, secondResult); }
@Override public String hash(String plaintext) { return plaintext; }
SimpleHashService extends HashService { @Override public String hash(String plaintext) { return plaintext; } }
SimpleHashService extends HashService { @Override public String hash(String plaintext) { return plaintext; } SimpleHashService(boolean serverSideHashEnabled, boolean allowCommonMistakes); }
SimpleHashService extends HashService { @Override public String hash(String plaintext) { return plaintext; } SimpleHashService(boolean serverSideHashEnabled, boolean allowCommonMistakes); @Override String hash(String plaintext); }
SimpleHashService extends HashService { @Override public String hash(String plaintext) { return plaintext; } SimpleHashService(boolean serverSideHashEnabled, boolean allowCommonMistakes); @Override String hash(String plaintext);  }