@Test void convertLegacyActivityToEventWithoutActivityParameterKey() { this.mockCreateRawEvent(); this.mockEntityReferenceResolve(); LegacyEvent e = new LegacyEvent(); Event actual = this.activityPubLegacyEventConverter.convertLegacyActivityToEvent(e); assertFalse(actual.getParameters().containsKey(MentionsRecordableEventConverter.MENTIONS_PARAMETER_KEY)); }
@Override public Event convertLegacyActivityToEvent(LegacyEvent e) { Event event = super.convertLegacyActivityToEvent(e); if (!StringUtils.isEmpty(e.getParam3())) { event.setParameters(singletonMap(MentionsRecordableEventConverter.MENTIONS_PARAMETER_KEY, e.getParam3())); } return event; }
MentionsLegacyEventConverter extends AbstractLegacyEventConverter { @Override public Event convertLegacyActivityToEvent(LegacyEvent e) { Event event = super.convertLegacyActivityToEvent(e); if (!StringUtils.isEmpty(e.getParam3())) { event.setParameters(singletonMap(MentionsRecordableEventConverter.MENTIONS_PARAMETER_KEY, e.getParam3())); } return event; } }
MentionsLegacyEventConverter extends AbstractLegacyEventConverter { @Override public Event convertLegacyActivityToEvent(LegacyEvent e) { Event event = super.convertLegacyActivityToEvent(e); if (!StringUtils.isEmpty(e.getParam3())) { event.setParameters(singletonMap(MentionsRecordableEventConverter.MENTIONS_PARAMETER_KEY, e.getParam3())); } return event; }  }
MentionsLegacyEventConverter extends AbstractLegacyEventConverter { @Override public Event convertLegacyActivityToEvent(LegacyEvent e) { Event event = super.convertLegacyActivityToEvent(e); if (!StringUtils.isEmpty(e.getParam3())) { event.setParameters(singletonMap(MentionsRecordableEventConverter.MENTIONS_PARAMETER_KEY, e.getParam3())); } return event; }  @Override LegacyEvent convertEventToLegacyActivity(Event e); @Override Event convertLegacyActivityToEvent(LegacyEvent e); }
MentionsLegacyEventConverter extends AbstractLegacyEventConverter { @Override public Event convertLegacyActivityToEvent(LegacyEvent e) { Event event = super.convertLegacyActivityToEvent(e); if (!StringUtils.isEmpty(e.getParam3())) { event.setParameters(singletonMap(MentionsRecordableEventConverter.MENTIONS_PARAMETER_KEY, e.getParam3())); } return event; }  @Override LegacyEvent convertEventToLegacyActivity(Event e); @Override Event convertLegacyActivityToEvent(LegacyEvent e);  }