Browse Source

Implements Unittest for Username Update

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