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