Add test for AuthMeApi.getLastLoginMillis (#2562)

This commit is contained in:
Caro 2022-07-16 18:35:42 +02:00 committed by GitHub
parent 9d9e039cac
commit 7530528432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,6 +241,12 @@ public class AuthMeApiTest {
assertThat(result, equalTo(Instant.ofEpochMilli(1501597979L)));
}
@Test
public void testGetLastLoginMillis() {
AuthMeApi result = AuthMeApi.getInstance();
assertThat(result.getLastLoginTime("notAPlayer"), nullValue());
}
@Test
public void shouldHandleNullLastLoginTime() {
// given