Ejemplo n.º 1
0
 /** Return a house policy with null values for its Ref and nested table fields. For bug 2730536 */
 public static HousePolicy example3() {
   HousePolicy housePolicy = new HousePolicy();
   housePolicy.setPolicyNumber(783);
   housePolicy.setDescription("vacant home.");
   housePolicy.setDateOfConstruction(Helper.dateFromString("1997/06/10"));
   housePolicy.setMaxCoverage(50000);
   housePolicy.setDescription("Fire and flood coverage");
   return housePolicy;
 }
Ejemplo n.º 2
0
 /** 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;
 }
Ejemplo n.º 3
0
 /** 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;
 }