@Test public void shouldGetStringReceivedDateAsNullIfReceivedDateIsNull() throws Exception { OrderPOD orderPod = new OrderPOD(); assertThat(orderPod.getStringReceivedDate(), nullValue()); }
@JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); void validate(); void fillPOD(Rnr requisition); void fillPODLineItems(List<? extends LineItem> lineItems); void copy(OrderPOD orderPOD); @JsonIgnore String getStringReceivedDate(); Date trimHoursFromDate(Date receivedDate); }
OrderPOD extends BaseModel { @JsonIgnore public String getStringReceivedDate() throws ParseException { if (this.receivedDate == null) return null; return forPattern("yyyy-MM-dd").print(new DateTime(this.receivedDate)); } OrderPOD(Long id);  OrderPOD(Long orderId, String orderNumber, Long userId); void validate(); void fillPOD(Rnr requisition); void fillPODLineItems(List<? extends LineItem> lineItems); void copy(OrderPOD orderPOD); @JsonIgnore String getStringReceivedDate(); Date trimHoursFromDate(Date receivedDate);  }