Skip to content

Commit

Permalink
fix test compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonpoo authored and ludomikula committed Nov 22, 2024
1 parent 570e35c commit d6d7a88
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.lowcoder.domain.application.model.ApplicationHistorySnapshotTS;
import org.lowcoder.domain.application.model.ApplicationHistorySnapshot;
import org.lowcoder.domain.application.service.ApplicationHistorySnapshotService;
import org.lowcoder.sdk.models.HasIdAndAuditing;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -47,8 +47,8 @@ public void testServiceMethods() {
.assertNext(list -> {
assertEquals(2, list.size());

ApplicationHistorySnapshotTS first = list.get(0);
ApplicationHistorySnapshotTS second = list.get(1);
ApplicationHistorySnapshot first = list.get(0);
ApplicationHistorySnapshot second = list.get(1);
assertTrue(first.getCreatedAt().isAfter(second.getCreatedAt()));

assertNull(first.getDsl());
Expand All @@ -66,7 +66,7 @@ public void testServiceMethods() {
StepVerifier.create(service.listAllHistorySnapshotBriefInfo(applicationId, null, null, null, null, PageRequest.of(1, 1)))
.assertNext(list -> {
assertEquals(1, list.size());
ApplicationHistorySnapshotTS one = list.get(0);
ApplicationHistorySnapshot one = list.get(0);
assertNull(one.getDsl());
assertEquals(ImmutableMap.of("context", "context1"), one.getContext());
assertEquals(applicationId, one.getApplicationId());
Expand Down

0 comments on commit d6d7a88

Please sign in to comment.