@Test public void testCopy() { AuditEventPageRequest request = new AuditEventPageRequest(); request.setFrom(FROM); request.setTo(TO); request.setLimit(LIMIT); request.setOffset(OFFSET); request.setType(EVENT_TYPE); AuditEventPageRequest copy = AuditEventPageRequest.copy(request); assertThat(request, is(sameBeanAs(copy))); }
public static AuditEventPageRequest copy(final AuditEventPageRequest source) { notNull(source, "source cannot be null"); final AuditEventPageRequest copy = new AuditEventPageRequest(); BeanUtils.copyProperties(source, copy); return copy; }
AuditEventPageRequest extends CustomPageRequest { public static AuditEventPageRequest copy(final AuditEventPageRequest source) { notNull(source, "source cannot be null"); final AuditEventPageRequest copy = new AuditEventPageRequest(); BeanUtils.copyProperties(source, copy); return copy; } }
AuditEventPageRequest extends CustomPageRequest { public static AuditEventPageRequest copy(final AuditEventPageRequest source) { notNull(source, "source cannot be null"); final AuditEventPageRequest copy = new AuditEventPageRequest(); BeanUtils.copyProperties(source, copy); return copy; } AuditEventPageRequest(); }
AuditEventPageRequest extends CustomPageRequest { public static AuditEventPageRequest copy(final AuditEventPageRequest source) { notNull(source, "source cannot be null"); final AuditEventPageRequest copy = new AuditEventPageRequest(); BeanUtils.copyProperties(source, copy); return copy; } AuditEventPageRequest(); ZonedDateTime getFrom(); void setFrom(final ZonedDateTime from); ZonedDateTime getTo(); void setTo(final ZonedDateTime to); String getType(); void setType(final String type); static AuditEventPageRequest copy(final AuditEventPageRequest source); AuditEventPageRequest withIncrementedLimit(); @Override MutableUri updateWithPageParams(final MutableUri builder); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
AuditEventPageRequest extends CustomPageRequest { public static AuditEventPageRequest copy(final AuditEventPageRequest source) { notNull(source, "source cannot be null"); final AuditEventPageRequest copy = new AuditEventPageRequest(); BeanUtils.copyProperties(source, copy); return copy; } AuditEventPageRequest(); ZonedDateTime getFrom(); void setFrom(final ZonedDateTime from); ZonedDateTime getTo(); void setTo(final ZonedDateTime to); String getType(); void setType(final String type); static AuditEventPageRequest copy(final AuditEventPageRequest source); AuditEventPageRequest withIncrementedLimit(); @Override MutableUri updateWithPageParams(final MutableUri builder); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }