@Test public void testToNotificationValue() { final NotificationValue expectedResult = new NotificationValue(); expectedResult.setExpiresAt(""); expectedResult.setFrom(""); expectedResult.setBody(""); expectedResult.setSubject(""); expectedResult.setReplyTo(""); expectedResult.setType("NotCompletedNotify"); final NotificationValue result = new NotificationRow().toNotificationValue(); assertEquals(expectedResult, result); }
public NotificationValue toNotificationValue() { NotificationValue value = new NotificationValue(); value.setType(getType().getAlias()); value.setExpiresAt(getExpiresAt()); value.setGroups(new ArrayList<>(getGroups())); value.setUsers(new ArrayList<>(getUsers())); value.setEmails(getEmails()); value.setBody(getBody()); value.setSubject(getSubject()); value.setFrom(getFrom()); value.setReplyTo(getReplyTo()); return value; }
NotificationRow { public NotificationValue toNotificationValue() { NotificationValue value = new NotificationValue(); value.setType(getType().getAlias()); value.setExpiresAt(getExpiresAt()); value.setGroups(new ArrayList<>(getGroups())); value.setUsers(new ArrayList<>(getUsers())); value.setEmails(getEmails()); value.setBody(getBody()); value.setSubject(getSubject()); value.setFrom(getFrom()); value.setReplyTo(getReplyTo()); return value; } }
NotificationRow { public NotificationValue toNotificationValue() { NotificationValue value = new NotificationValue(); value.setType(getType().getAlias()); value.setExpiresAt(getExpiresAt()); value.setGroups(new ArrayList<>(getGroups())); value.setUsers(new ArrayList<>(getUsers())); value.setEmails(getEmails()); value.setBody(getBody()); value.setSubject(getSubject()); value.setFrom(getFrom()); value.setReplyTo(getReplyTo()); return value; } NotificationRow();  NotificationRow(NotificationValue notification); }
NotificationRow { public NotificationValue toNotificationValue() { NotificationValue value = new NotificationValue(); value.setType(getType().getAlias()); value.setExpiresAt(getExpiresAt()); value.setGroups(new ArrayList<>(getGroups())); value.setUsers(new ArrayList<>(getUsers())); value.setEmails(getEmails()); value.setBody(getBody()); value.setSubject(getSubject()); value.setFrom(getFrom()); value.setReplyTo(getReplyTo()); return value; } NotificationRow();  NotificationRow(NotificationValue notification); NotificationValue toNotificationValue(); long getId(); void setId(long id); String getBody(); void setBody(String body); String getExpiresAt(); void setExpiresAt(String expiresAt); String getFrom(); void setFrom(String from); List<String> getGroups(); void setGroups(List<String> groups); String getReplyTo(); void setReplyTo(String replyTo); String getSubject(); void setSubject(String subject); List<String> getUsers(); void setUsers(List<String> users); String getEmails(); void setEmails(String emails); NotificationType getType(); void setType(NotificationType type); Expiration getExpiration(); void setExpiration(Expiration expiration); @Override int hashCode(); @Override boolean equals(final Object obj); NotificationRow clone(); @Override String toString(); }
NotificationRow { public NotificationValue toNotificationValue() { NotificationValue value = new NotificationValue(); value.setType(getType().getAlias()); value.setExpiresAt(getExpiresAt()); value.setGroups(new ArrayList<>(getGroups())); value.setUsers(new ArrayList<>(getUsers())); value.setEmails(getEmails()); value.setBody(getBody()); value.setSubject(getSubject()); value.setFrom(getFrom()); value.setReplyTo(getReplyTo()); return value; } NotificationRow();  NotificationRow(NotificationValue notification); NotificationValue toNotificationValue(); long getId(); void setId(long id); String getBody(); void setBody(String body); String getExpiresAt(); void setExpiresAt(String expiresAt); String getFrom(); void setFrom(String from); List<String> getGroups(); void setGroups(List<String> groups); String getReplyTo(); void setReplyTo(String replyTo); String getSubject(); void setSubject(String subject); List<String> getUsers(); void setUsers(List<String> users); String getEmails(); void setEmails(String emails); NotificationType getType(); void setType(NotificationType type); Expiration getExpiration(); void setExpiration(Expiration expiration); @Override int hashCode(); @Override boolean equals(final Object obj); NotificationRow clone(); @Override String toString();  }