Skip to content

Commit feb7dfc

Browse files
committed
CAUSEWAY-3989 : fixes compile issue
1 parent 4f62429 commit feb7dfc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

extensions/core/commandlog/applib/src/test/java/org/apache/causeway/extensions/commandlog/applib/integtest/CommandLog_IntegTestAbstract.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
package org.apache.causeway.extensions.commandlog.applib.integtest;
2020

21+
import java.sql.Timestamp;
2122
import java.util.List;
2223
import java.util.Optional;
2324
import java.util.UUID;
@@ -367,9 +368,10 @@ void test_all_the_repository_methods() {
367368
val username1 = commandTarget1User1.getUsername();
368369
val from = commandTarget1User1.getStartedAt().toLocalDateTime().toLocalDate();
369370
val to = from.plusDays(1);
371+
final var timestamp = commandTarget1User1.getTimestamp();
370372

371373
// when
372-
List<? extends CommandLogEntry> notYetReplayed = commandLogEntryRepository.findForegroundSinceTimestampAndWithReplayPendingOrFailed(baseline);
374+
List<? extends CommandLogEntry> notYetReplayed = commandLogEntryRepository.findForegroundSinceTimestampAndWithReplayPendingOrFailed(timestamp);
373375

374376
// then
375377
Assertions.assertThat(notYetReplayed).isEmpty();
@@ -382,7 +384,7 @@ void test_all_the_repository_methods() {
382384
commandTarget1User1.setReplayState(ReplayState.PENDING);
383385

384386
// when
385-
List<? extends CommandLogEntry> notYetReplayed2 = commandLogEntryRepository.findForegroundSinceTimestampAndWithReplayPendingOrFailed(baseline);
387+
List<? extends CommandLogEntry> notYetReplayed2 = commandLogEntryRepository.findForegroundSinceTimestampAndWithReplayPendingOrFailed(timestamp);
386388

387389
// then
388390
Assertions.assertThat(notYetReplayed2).hasSize(1);

0 commit comments

Comments
 (0)