/** Return an example claim instance. */ public static HousePolicy example2() { HousePolicy housePolicy = new HousePolicy(); housePolicy.setPolicyNumber(102); housePolicy.setDescription("Nice house."); housePolicy.setDateOfConstruction(Helper.dateFromString("1997/06/12")); housePolicy.setMaxCoverage(11111); housePolicy.setDescription("Theft Coverage"); housePolicy.addClaim(HouseClaim.example3()); return housePolicy; }
/** Return an example claim instance. */ public static HousePolicy example1() { HousePolicy housePolicy = new HousePolicy(); housePolicy.setPolicyNumber(101); housePolicy.setDescription("Nice house."); housePolicy.setDateOfConstruction(Helper.dateFromString("1997/06/10")); housePolicy.setMaxCoverage(50000); housePolicy.setDescription("Fire and flood coverage"); housePolicy.addClaim(HouseClaim.example1()); housePolicy.addClaim(HouseClaim.example2()); return housePolicy; }