Browse Source

Implements Unittest for Username Update

feature-credentialneu
fdai5728 3 years ago
parent
commit
04eb3200bf
  1. 12
      src/test/java/CredentialRepositoryTest.java

12
src/test/java/CredentialRepositoryTest.java

@ -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());
}
}
Loading…
Cancel
Save