mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 02:37:26 +08:00
[F] Fix tests
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user