From 18468f3837906452eb707d39f4fd8e18e4a07269 Mon Sep 17 00:00:00 2001 From: "Phelan, Ross" Date: Thu, 31 Oct 2024 13:49:14 +0000 Subject: [PATCH] Updating yaml, updating MockDataBuilders --- .../app/petstore/utils/MockDataBuilders.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/mastercard/app/petstore/utils/MockDataBuilders.java b/src/main/java/com/mastercard/app/petstore/utils/MockDataBuilders.java index fd227a6..4ef39fe 100644 --- a/src/main/java/com/mastercard/app/petstore/utils/MockDataBuilders.java +++ b/src/main/java/com/mastercard/app/petstore/utils/MockDataBuilders.java @@ -17,7 +17,7 @@ public static NewCat buildNewCat(){ newCat.setBreed("Tabby"); newCat.setColor("White with black spots"); newCat.setGender("FEMALE"); - newCat.birthdate(new Birthdate().year(2022).month(04).day(17)); + newCat.birthdate(new Birthdate().year(2022).month(4).day(17)); newCat.putCatProperty1Item("Intelligence", "9"); newCat.setStatus(new PetStatus().value("AVAILABLE")); return newCat; @@ -29,7 +29,7 @@ public static Cat buildCat(){ cat.setBreed("Tabby"); cat.setColor("White with black spots"); cat.setGender("FEMALE"); - cat.birthdate(new Birthdate().year(2022).month(04).day(17)); + cat.birthdate(new Birthdate().year(2022).month(4).day(17)); cat.putCatProperty1Item("Intelligence", "9"); cat.setStatus(new PetStatus().value("AVAILABLE")); return cat; @@ -41,7 +41,7 @@ public static NewDog buildNewDog(){ newDog.setBreed("Tabby"); newDog.setColor("White with black spots"); newDog.setGender("FEMALE"); - newDog.birthdate(new Birthdate().year(2022).month(04).day(17)); + newDog.birthdate(new Birthdate().year(2022).month(4).day(17)); newDog.putDogProperty1Item("Intelligence", "9"); newDog.setStatus(new PetStatus().value("AVAILABLE")); return newDog; @@ -53,7 +53,7 @@ public static Dog buildDog(){ dog.setBreed("Tabby"); dog.setColor("White with black spots"); dog.setGender("FEMALE"); - dog.birthdate(new Birthdate().year(2022).month(04).day(17)); + dog.birthdate(new Birthdate().year(2022).month(4).day(17)); dog.putDogProperty1Item("Intelligence", "9"); dog.setStatus(new PetStatus().value("AVAILABLE")); return dog; @@ -65,14 +65,13 @@ public static Pet buildPet(){ pet.setBreed("Tabby"); pet.setColor("White with black spots"); pet.setGender("FEMALE"); - pet.birthdate(new Birthdate().year(2022).month(04).day(17)); + pet.birthdate(new Birthdate().year(2022).month(4).day(17)); pet.setStatus(new PetStatus().value("AVAILABLE")); return pet; } public static PetStatus buildPetStatus(){ - PetStatus petStatus = new PetStatus().value("RESERVED"); - return petStatus; + return new PetStatus().value("RESERVED"); } public static NewAdoption buildNewAdoptionObject(){