test_class.declarator: THING_TYPE_UID = new ThingTypeUID("binding", "type")
test_class.modifier: private static final
test_class.original_string: private static final ThingTypeUID THING_TYPE_UID = new ThingTypeUID("binding", "type");
test_class.type: ThingTypeUID
test_class.var_name: THING_TYPE_UID
test_class.declarator: THING_UID = new ThingUID(THING_TYPE_UID, "id")
test_class.modifier: private static final
test_class.original_string: private static final ThingUID THING_UID = new ThingUID(THING_TYPE_UID, "id");
test_class.type: ThingUID
test_class.var_name: THING_UID
test_class.declarator: DISCOVERY_RESULT = DiscoveryResultBuilder.create(THING_UID)
              .withThingType(THING_TYPE_UID).withTTL(60).build()
test_class.modifier: private static final
test_class.original_string: private static final DiscoveryResult DISCOVERY_RESULT = DiscoveryResultBuilder.create(THING_UID)
              .withThingType(THING_TYPE_UID).withTTL(60).build();
test_class.type: DiscoveryResult
test_class.var_name: DISCOVERY_RESULT
test_class.declarator: INBOX_ADDED_EVENT_TYPE = InboxAddedEvent.TYPE
test_class.modifier: private static final
test_class.original_string: private static final String INBOX_ADDED_EVENT_TYPE = InboxAddedEvent.TYPE;
test_class.type: String
test_class.var_name: INBOX_ADDED_EVENT_TYPE
test_class.declarator: INBOX_ADDED_EVENT_TOPIC = InboxEventFactory.INBOX_ADDED_EVENT_TOPIC
              .replace("{thingUID}", THING_UID.getAsString())
test_class.modifier: private static final
test_class.original_string: private static final String INBOX_ADDED_EVENT_TOPIC = InboxEventFactory.INBOX_ADDED_EVENT_TOPIC
              .replace("{thingUID}", THING_UID.getAsString());
test_class.type: String
test_class.var_name: INBOX_ADDED_EVENT_TOPIC
test_class.declarator: INBOX_ADDED_EVENT_PAYLOAD = new Gson()
              .toJson(DiscoveryResultDTOMapper.map(DISCOVERY_RESULT))
test_class.modifier: private static final
test_class.original_string: private static final String INBOX_ADDED_EVENT_PAYLOAD = new Gson()
              .toJson(DiscoveryResultDTOMapper.map(DISCOVERY_RESULT));
test_class.type: String
test_class.var_name: INBOX_ADDED_EVENT_PAYLOAD
test_class.declarator: factory = new InboxEventFactory()
test_class.modifier: private
test_class.original_string: private InboxEventFactory factory = new InboxEventFactory();
test_class.type: InboxEventFactory
test_class.var_name: factory
test_class.file: bundles/org.openhab.core.config.discovery/src/test/java/org/openhab/core/config/discovery/inbox/events/InboxEventFactoryTest.java
test_class.identifier: InboxEventFactoryTest
test_case.body: @Test
      public void inboxEventFactoryCreatesInboxAddedEventCorrectly() {
          InboxAddedEvent event = InboxEventFactory.createAddedEvent(DISCOVERY_RESULT);
  
          assertThat(event.getType(), is(INBOX_ADDED_EVENT_TYPE));
          assertThat(event.getTopic(), is(INBOX_ADDED_EVENT_TOPIC));
          assertThat(event.getPayload(), is(INBOX_ADDED_EVENT_PAYLOAD));
          assertThat(event.getDiscoveryResult(), not(nullValue()));
          assertThat(event.getDiscoveryResult().thingUID, is(THING_UID.getAsString()));
      }
test_case.class_method_signature: InboxEventFactoryTest.inboxEventFactoryCreatesInboxAddedEventCorrectly()
test_case.full_signature: @Test public void inboxEventFactoryCreatesInboxAddedEventCorrectly()
test_case.identifier: inboxEventFactoryCreatesInboxAddedEventCorrectly
test_case.invocations: createAddedEvent assertThat getType is assertThat getTopic is assertThat getPayload is assertThat getDiscoveryResult not nullValue assertThat getDiscoveryResult is getAsString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void inboxEventFactoryCreatesInboxAddedEventCorrectly()
focal_class.declarator: INBOX_ADDED_EVENT_TOPIC = "openhab/inbox/{thingUID}/added"
focal_class.modifier: static final
focal_class.original_string: static final String INBOX_ADDED_EVENT_TOPIC = "openhab/inbox/{thingUID}/added";
focal_class.type: String
focal_class.var_name: INBOX_ADDED_EVENT_TOPIC
focal_class.declarator: INBOX_REMOVED_EVENT_TOPIC = "openhab/inbox/{thingUID}/removed"
focal_class.modifier: static final
focal_class.original_string: static final String INBOX_REMOVED_EVENT_TOPIC = "openhab/inbox/{thingUID}/removed";
focal_class.type: String
focal_class.var_name: INBOX_REMOVED_EVENT_TOPIC
focal_class.declarator: INBOX_UPDATED_EVENT_TOPIC = "openhab/inbox/{thingUID}/updated"
focal_class.modifier: static final
focal_class.original_string: static final String INBOX_UPDATED_EVENT_TOPIC = "openhab/inbox/{thingUID}/updated";
focal_class.type: String
focal_class.var_name: INBOX_UPDATED_EVENT_TOPIC
focal_class.file: bundles/org.openhab.core.config.discovery/src/main/java/org/openhab/core/config/discovery/inbox/events/InboxEventFactory.java
focal_class.identifier: InboxEventFactory
focal_class.class_method_signature: InboxEventFactory.InboxEventFactory()
focal_class.full_signature: public  InboxEventFactory()
focal_class.identifier: InboxEventFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  InboxEventFactory()
focal_class.class_method_signature: InboxEventFactory.createEventByType(String eventType, String topic, String payload, @Nullable String source)
focal_class.full_signature: @Override protected Event createEventByType(String eventType, String topic, String payload, @Nullable String source)
focal_class.identifier: createEventByType
focal_class.modifiers: @Override protected
focal_class.parameters: (String eventType, String topic, String payload, @Nullable String source)
focal_class.return: Event
focal_class.signature: Event createEventByType(String eventType, String topic, String payload, @Nullable String source)
focal_class.class_method_signature: InboxEventFactory.createAddedEvent(String topic, String payload)
focal_class.full_signature: private Event createAddedEvent(String topic, String payload)
focal_class.identifier: createAddedEvent
focal_class.modifiers: private
focal_class.parameters: (String topic, String payload)
focal_class.return: Event
focal_class.signature: Event createAddedEvent(String topic, String payload)
focal_class.class_method_signature: InboxEventFactory.createRemovedEvent(String topic, String payload)
focal_class.full_signature: private Event createRemovedEvent(String topic, String payload)
focal_class.identifier: createRemovedEvent
focal_class.modifiers: private
focal_class.parameters: (String topic, String payload)
focal_class.return: Event
focal_class.signature: Event createRemovedEvent(String topic, String payload)
focal_class.class_method_signature: InboxEventFactory.createUpdatedEvent(String topic, String payload)
focal_class.full_signature: private Event createUpdatedEvent(String topic, String payload)
focal_class.identifier: createUpdatedEvent
focal_class.modifiers: private
focal_class.parameters: (String topic, String payload)
focal_class.return: Event
focal_class.signature: Event createUpdatedEvent(String topic, String payload)
focal_class.class_method_signature: InboxEventFactory.createAddedEvent(DiscoveryResult discoveryResult)
focal_class.full_signature: public static InboxAddedEvent createAddedEvent(DiscoveryResult discoveryResult)
focal_class.identifier: createAddedEvent
focal_class.modifiers: public static
focal_class.parameters: (DiscoveryResult discoveryResult)
focal_class.return: InboxAddedEvent
focal_class.signature: InboxAddedEvent createAddedEvent(DiscoveryResult discoveryResult)
focal_class.class_method_signature: InboxEventFactory.createRemovedEvent(DiscoveryResult discoveryResult)
focal_class.full_signature: public static InboxRemovedEvent createRemovedEvent(DiscoveryResult discoveryResult)
focal_class.identifier: createRemovedEvent
focal_class.modifiers: public static
focal_class.parameters: (DiscoveryResult discoveryResult)
focal_class.return: InboxRemovedEvent
focal_class.signature: InboxRemovedEvent createRemovedEvent(DiscoveryResult discoveryResult)
focal_class.class_method_signature: InboxEventFactory.createUpdatedEvent(DiscoveryResult discoveryResult)
focal_class.full_signature: public static InboxUpdatedEvent createUpdatedEvent(DiscoveryResult discoveryResult)
focal_class.identifier: createUpdatedEvent
focal_class.modifiers: public static
focal_class.parameters: (DiscoveryResult discoveryResult)
focal_class.return: InboxUpdatedEvent
focal_class.signature: InboxUpdatedEvent createUpdatedEvent(DiscoveryResult discoveryResult)
focal_class.class_method_signature: InboxEventFactory.assertValidArgument(DiscoveryResult discoveryResult)
focal_class.full_signature: private static void assertValidArgument(DiscoveryResult discoveryResult)
focal_class.identifier: assertValidArgument
focal_class.modifiers: private static
focal_class.parameters: (DiscoveryResult discoveryResult)
focal_class.return: void
focal_class.signature: void assertValidArgument(DiscoveryResult discoveryResult)
focal_class.class_method_signature: InboxEventFactory.buildTopic(String topic, String thingUID)
focal_class.full_signature: private static String buildTopic(String topic, String thingUID)
focal_class.identifier: buildTopic
focal_class.modifiers: private static
focal_class.parameters: (String topic, String thingUID)
focal_class.return: String
focal_class.signature: String buildTopic(String topic, String thingUID)
focal_class.class_method_signature: InboxEventFactory.map(DiscoveryResult discoveryResult)
focal_class.full_signature: private static DiscoveryResultDTO map(DiscoveryResult discoveryResult)
focal_class.identifier: map
focal_class.modifiers: private static
focal_class.parameters: (DiscoveryResult discoveryResult)
focal_class.return: DiscoveryResultDTO
focal_class.signature: DiscoveryResultDTO map(DiscoveryResult discoveryResult)
focal_class.superclass: extends AbstractEventFactory
focal_method.body: private Event createAddedEvent(String topic, String payload) {
          DiscoveryResultDTO resultDTO = deserializePayload(payload, DiscoveryResultDTO.class);
          return new InboxAddedEvent(topic, payload, resultDTO);
      }
focal_method.class_method_signature: InboxEventFactory.createAddedEvent(String topic, String payload)
focal_method.full_signature: private Event createAddedEvent(String topic, String payload)
focal_method.identifier: createAddedEvent
focal_method.invocations: deserializePayload
focal_method.modifiers: private
focal_method.parameters: (String topic, String payload)
focal_method.return: Event
focal_method.signature: Event createAddedEvent(String topic, String payload)