Skip to content

Commit

Permalink
Resolved test cases error.
Browse files Browse the repository at this point in the history
  • Loading branch information
guptakshitij2308 committed Oct 12, 2024
1 parent fd4e5fc commit 999b9f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void setup() {
ddbPass1.setPassId("1");
ddbPass1.setCityId("1");
ddbPass1.setPassType("LimitedGames");
ddbPass1.setTotalGames(10);
ddbPass1.setTotalGames(10.0);
ddbPass1.setTotalDays(3000);
ddbPass1.setPrice(1000.0);
ddbPass1.setTitle("10 games pass");
Expand All @@ -47,7 +47,7 @@ public void setup() {
ddbPass2.setPassId("2");
ddbPass2.setCityId("2");
ddbPass2.setPassType("LimitedDays");
ddbPass2.setTotalGames(1000);
ddbPass2.setTotalGames(1000.0);
ddbPass2.setTotalDays(30);
ddbPass2.setPrice(1000.0);
ddbPass2.setTitle("30 days pass");
Expand All @@ -57,7 +57,7 @@ public void setup() {
ddbPass2.setPassId("2");
ddbPass2.setCityId("2");
ddbPass2.setPassType("LimitedDays");
ddbPass2.setTotalGames(10000);
ddbPass2.setTotalGames(10000.0);
ddbPass2.setTotalDays(30);
ddbPass2.setPrice(100.0);
ddbPass2.setTitle("30 days pass");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void setup() {
// Sample DynamoDB Pass object
testPass = new Pass();
testPass.setPassId("pass-id");
testPass.setTotalGames(10);
testPass.setTotalGames(10.0);
testPass.setTotalDays(30);

// Sample DynamoDB User object
Expand All @@ -63,7 +63,7 @@ public void setup() {
testSubscription.setSubscriptionId("subscription-id");
testSubscription.setPassId("pass-id");
testSubscription.setUserId("user-id");
testSubscription.setGamesLeft(10);
testSubscription.setGamesLeft(10.0);
testSubscription.setStatus("Active");
testSubscription.setExpiryDate(LocalDate.now().plusDays(30).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
}
Expand Down

0 comments on commit 999b9f5

Please sign in to comment.