Browse Source

Implements Unittest for Password Update

feature-credentialneu
fdai5728 3 years ago
parent
commit
8190c10f3c
  1. 8
      src/test/java/CredentialRepositoryTest.java

8
src/test/java/CredentialRepositoryTest.java

@ -52,8 +52,12 @@ class CredentialRepositoryTest {
@Test
void testUpdatePassword(){
// this.credentialRepository.createNewCredential("mock", "mock");
// this.credentialRepository.updatePassword(0);
this.credentialRepository.createNewCredential("mock", "mock");
this.credentialRepository.updatePassword(0, "newPassword");
Credential c = this.credentialRepository.getCredentialsViaId(0);
Assertions.assertEquals("newPassword", c.getPassword());
}

Loading…
Cancel
Save