diff --git a/platform/src/test/java/com/flickmatch/platform/graphql/builder/PassBuilderTest.java b/platform/src/test/java/com/flickmatch/platform/graphql/builder/PassBuilderTest.java index edc7d907..e0d38b6a 100644 --- a/platform/src/test/java/com/flickmatch/platform/graphql/builder/PassBuilderTest.java +++ b/platform/src/test/java/com/flickmatch/platform/graphql/builder/PassBuilderTest.java @@ -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"); @@ -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"); @@ -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"); diff --git a/platform/src/test/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilderTest.java b/platform/src/test/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilderTest.java index fbcfe273..67f48c18 100644 --- a/platform/src/test/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilderTest.java +++ b/platform/src/test/java/com/flickmatch/platform/graphql/builder/SubscriptionBuilderTest.java @@ -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 @@ -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"))); }