|
|
@ -70,6 +70,19 @@ class CredentialRepositoryTest { |
|
|
|
Credential c = this.credentialRepository.getCredentialsViaId(0); |
|
|
|
|
|
|
|
Assertions.assertEquals("newUsername", c.getName()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void testDeleteEntry(){ |
|
|
|
|
|
|
|
this.credentialRepository.createNewCredential("mock", "mock"); |
|
|
|
this.credentialRepository.delete(0); |
|
|
|
|
|
|
|
Assertions.assertEquals(null, this.credentialRepository.getCredentialsViaId(0)); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void testIndexShiftAfterDeletion(){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|