|
@ -20,6 +20,17 @@ class CredentialRepositoryTest { |
|
|
Assertions.assertEquals(2, this.credentialRepository.createNewCredential("kek", "mate")); |
|
|
Assertions.assertEquals(2, this.credentialRepository.createNewCredential("kek", "mate")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void searchForUserInRepository() { |
|
|
|
|
|
|
|
|
|
|
|
this.credentialRepository.createNewCredential("mock", "mock"); |
|
|
|
|
|
this.credentialRepository.createNewCredential("kek", "mate"); |
|
|
|
|
|
|
|
|
|
|
|
Credential c = this.credentialRepository.getCredentialsViaName("kek"); |
|
|
|
|
|
Assertions.assertEquals("mate", c.getPassword()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|