@Test public void testSetPropertyAlias() { Object o = new Object(); NotificationBatch sut = new NotificationBatch(); sut.setProperty(KEY, o); sut.setPropertyAlias("alias", KEY); Property<Object> result1 = sut.getProperties().get(KEY); Property<Object> result2 = sut.getProperties().get("alias"); assertEquals(o, result2.getValue()); result1.setValue(8L); assertEquals(8L, result2.getValue()); }
public void setPropertyAlias(final String aliasKey, final String originalKey) { properties.putAlias(aliasKey, originalKey); }
NotificationBatch { public void setPropertyAlias(final String aliasKey, final String originalKey) { properties.putAlias(aliasKey, originalKey); } }
NotificationBatch { public void setPropertyAlias(final String aliasKey, final String originalKey) { properties.putAlias(aliasKey, originalKey); } NotificationBatch();  NotificationBatch(final NotificationType type, final long recipientId);  NotificationBatch(final NotificationType type, final Collection<Long> recipientIds); }
NotificationBatch { public void setPropertyAlias(final String aliasKey, final String originalKey) { properties.putAlias(aliasKey, originalKey); } NotificationBatch();  NotificationBatch(final NotificationType type, final long recipientId);  NotificationBatch(final NotificationType type, final Collection<Long> recipientIds); Map<NotificationType, Collection<Long>> getRecipients(); PropertyMap<Object> getProperties(); void setRecipient(final NotificationType type, final long recipientId); void setProperty(final String key, final Object value); void setProperty(final String key, final Class type, final Serializable identity); void setPropertyAlias(final String aliasKey, final String originalKey); }
NotificationBatch { public void setPropertyAlias(final String aliasKey, final String originalKey) { properties.putAlias(aliasKey, originalKey); } NotificationBatch();  NotificationBatch(final NotificationType type, final long recipientId);  NotificationBatch(final NotificationType type, final Collection<Long> recipientIds); Map<NotificationType, Collection<Long>> getRecipients(); PropertyMap<Object> getProperties(); void setRecipient(final NotificationType type, final long recipientId); void setProperty(final String key, final Object value); void setProperty(final String key, final Class type, final Serializable identity); void setPropertyAlias(final String aliasKey, final String originalKey);  }