[F] Fix tests

This commit is contained in:
Azalea
2024-02-19 21:03:38 -05:00
parent 7ac7aacb6c
commit a716a69b8b
3 changed files with 20 additions and 19 deletions

View File

@@ -21,7 +21,7 @@ class CardRepositoryTest {
@Test
void findByExtId_Exists() {
cardRepository.save(new Card(1, 114514L, "01145141919810000000", LocalDateTime.now(), LocalDateTime.now()));
cardRepository.save(new Card(1, 114514L, "01145141919810000000", LocalDateTime.now(), LocalDateTime.now(), null));
var c = cardRepository.findByExtId(114514L);

View File

@@ -13,7 +13,7 @@ public class CardHelper {
public static Card getCard() {
var now = LocalDateTime.now();
return new Card(1L, 114514L, "01145141919810000000", now, now);
return new Card(1L, 114514L, "01145141919810000000", now, now, null);
}
public static Card getRandomCard() {
@@ -27,6 +27,6 @@ public class CardHelper {
for (int i = 0; i < "114514".length(); i++)
extId = extId * 10 + rand.nextInt(10);
return new Card(0, extId, luid, now, now);
return new Card(0, extId, luid, now, now, null);
}
}