|
@ -61,4 +61,16 @@ class CredentialRepositoryTest { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void testUpdateUsername(){ |
|
|
|
|
|
|
|
|
|
|
|
this.credentialRepository.createNewCredential("mock", "mock"); |
|
|
|
|
|
this.credentialRepository.updateUsername(0, "newUsername"); |
|
|
|
|
|
|
|
|
|
|
|
Credential c = this.credentialRepository.getCredentialsViaId(0); |
|
|
|
|
|
|
|
|
|
|
|
Assertions.assertEquals("newPassword", c.getName()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |