|
@ -52,8 +52,12 @@ class CredentialRepositoryTest { |
|
|
@Test |
|
|
@Test |
|
|
void testUpdatePassword(){ |
|
|
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()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|