@Override @SelectJson("alert") public Set<Alert> expected() { Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT+02:00")); c.set(Calendar.YEAR, 2011); c.set(Calendar.MONTH, Calendar.DECEMBER); c.set(Calendar.DAY_OF_MONTH, 4); c.set(Calendar.HOUR_OF_DAY, 10); c.set(Calendar.MINUTE, 5); c.set(Calendar.SECOND, 2); return ImmutableSet.of(Alert.builder() .id("20").description("Failed to deploy Vm with Id: 52").sent(c.getTime()).type("7").build()); }
/** * @see Alert#getSent() */ public T sent(Date sent) { this.sent = sent; return self(); }
/** * @see Alert#getId() */ public T id(String id) { this.id = id; return self(); }
/** * @see Alert#getDescription() */ public T description(String description) { this.description = description; return self(); }
/** * @see Alert#getSent() */ public T sent(Date sent) { this.sent = sent; return self(); }
/** * @see Alert#getDescription() */ public T description(String description) { this.description = description; return self(); }
/** * @see Alert#getType() */ public T type(String type) { this.type = type; return self(); }
/** * @see Alert#getType() */ public T type(String type) { this.type = type; return self(); }
public T fromAlert(Alert in) { return this .id(in.getId()) .description(in.getDescription()) .sent(in.getSent()) .type(in.getType()); } }
/** * @see Alert#getSent() */ public T sent(Date sent) { this.sent = sent; return self(); }
/** * @see Alert#getDescription() */ public T description(String description) { this.description = description; return self(); }
/** * @see Alert#getId() */ public T id(String id) { this.id = id; return self(); }
/** * @see Alert#getId() */ public T id(String id) { this.id = id; return self(); }
public T fromAlert(Alert in) { return this .id(in.getId()) .description(in.getDescription()) .sent(in.getSent()) .type(in.getType()); } }
@Override @SelectJson("alert") public Set<Alert> expected() { Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT+02:00")); c.set(Calendar.YEAR, 2011); c.set(Calendar.MONTH, Calendar.DECEMBER); c.set(Calendar.DAY_OF_MONTH, 4); c.set(Calendar.HOUR_OF_DAY, 10); c.set(Calendar.MINUTE, 5); c.set(Calendar.SECOND, 2); return ImmutableSet.of(Alert.builder() .id("20").description("Failed to deploy Vm with Id: 52").sent(c.getTime()).type("7").build()); }
public T fromAlert(Alert in) { return this .id(in.getId()) .description(in.getDescription()) .sent(in.getSent()) .type(in.getType()); } }
/** * @see Alert#getType() */ public T type(String type) { this.type = type; return self(); }