Browse Source

Implements Unittest for Password Update

feature-serializer
fdai5728 3 years ago
committed by fdai6352
parent
commit
b95899aa56
  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