test_class.declarator: underTest
test_class.modifier: private
test_class.original_string: private DefaultMessageMapperRegistry underTest;
test_class.type: DefaultMessageMapperRegistry
test_class.var_name: underTest
test_class.declarator: defaultMapper
test_class.modifier: private
test_class.original_string: private MessageMapper defaultMapper;
test_class.type: MessageMapper
test_class.var_name: defaultMapper
test_class.declarator: mockMapper1
test_class.modifier: private
test_class.original_string: private MessageMapper mockMapper1;
test_class.type: MessageMapper
test_class.var_name: mockMapper1
test_class.declarator: mockMapper2
test_class.modifier: private
test_class.original_string: private MessageMapper mockMapper2;
test_class.type: MessageMapper
test_class.var_name: mockMapper2
test_class.declarator: fallbackMapper
test_class.modifier: private
test_class.original_string: private MessageMapper fallbackMapper;
test_class.type: MessageMapper
test_class.var_name: fallbackMapper
test_class.file: services/connectivity/mapping/src/test/java/org/eclipse/ditto/services/connectivity/mapping/DefaultMessageMapperRegistryTest.java
test_class.identifier: DefaultMessageMapperRegistryTest
test_case.body: @Test
      public void testNonExistentMapperResolvesToDefaultMapper() {
          assertThat(underTest.getMappers(newPayloadMapping("eclipse"))).containsExactly(defaultMapper);
      }
test_case.class_method_signature: DefaultMessageMapperRegistryTest.testNonExistentMapperResolvesToDefaultMapper()
test_case.full_signature: @Test public void testNonExistentMapperResolvesToDefaultMapper()
test_case.identifier: testNonExistentMapperResolvesToDefaultMapper
test_case.invocations: containsExactly assertThat getMappers newPayloadMapping
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNonExistentMapperResolvesToDefaultMapper()
focal_class.declarator: defaultMapper
focal_class.modifier: private final
focal_class.original_string: private final MessageMapper defaultMapper;
focal_class.type: MessageMapper
focal_class.var_name: defaultMapper
focal_class.declarator: customMappers
focal_class.modifier: private final
focal_class.original_string: private final Map<String, MessageMapper> customMappers;
focal_class.type: Map<String, MessageMapper>
focal_class.var_name: customMappers
focal_class.declarator: fallbackMappers
focal_class.modifier: private final
focal_class.original_string: private final Map<String, MessageMapper> fallbackMappers;
focal_class.type: Map<String, MessageMapper>
focal_class.var_name: fallbackMappers
focal_class.file: services/connectivity/mapping/src/main/java/org/eclipse/ditto/services/connectivity/mapping/DefaultMessageMapperRegistry.java
focal_class.identifier: DefaultMessageMapperRegistry
focal_class.interfaces: implements MessageMapperRegistry
focal_class.class_method_signature: DefaultMessageMapperRegistry.DefaultMessageMapperRegistry(final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.full_signature: private  DefaultMessageMapperRegistry(final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.identifier: DefaultMessageMapperRegistry
focal_class.modifiers: private
focal_class.parameters: (final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.signature:  DefaultMessageMapperRegistry(final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.class_method_signature: DefaultMessageMapperRegistry.of(final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.full_signature: public static DefaultMessageMapperRegistry of(final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.return: DefaultMessageMapperRegistry
focal_class.signature: DefaultMessageMapperRegistry of(final MessageMapper defaultMapper,
              final Map<String, MessageMapper> customMappers,
              final Map<String, MessageMapper> fallbackMappers)
focal_class.class_method_signature: DefaultMessageMapperRegistry.getDefaultMapper()
focal_class.full_signature: @Override public MessageMapper getDefaultMapper()
focal_class.identifier: getDefaultMapper
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MessageMapper
focal_class.signature: MessageMapper getDefaultMapper()
focal_class.class_method_signature: DefaultMessageMapperRegistry.getMappers(final PayloadMapping payloadMapping)
focal_class.full_signature: @Override public List<MessageMapper> getMappers(final PayloadMapping payloadMapping)
focal_class.identifier: getMappers
focal_class.modifiers: @Override public
focal_class.parameters: (final PayloadMapping payloadMapping)
focal_class.return: List<MessageMapper>
focal_class.signature: List<MessageMapper> getMappers(final PayloadMapping payloadMapping)
focal_class.class_method_signature: DefaultMessageMapperRegistry.resolveMessageMapper(final String mapper)
focal_class.full_signature: @Nullable private MessageMapper resolveMessageMapper(final String mapper)
focal_class.identifier: resolveMessageMapper
focal_class.modifiers: @Nullable private
focal_class.parameters: (final String mapper)
focal_class.return: MessageMapper
focal_class.signature: MessageMapper resolveMessageMapper(final String mapper)
focal_class.class_method_signature: DefaultMessageMapperRegistry.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: DefaultMessageMapperRegistry.validatePayloadMapping(final PayloadMapping payloadMapping)
focal_class.full_signature: @Override public void validatePayloadMapping(final PayloadMapping payloadMapping)
focal_class.identifier: validatePayloadMapping
focal_class.modifiers: @Override public
focal_class.parameters: (final PayloadMapping payloadMapping)
focal_class.return: void
focal_class.signature: void validatePayloadMapping(final PayloadMapping payloadMapping)
focal_class.class_method_signature: DefaultMessageMapperRegistry.validateMessageMapper(final String mapper)
focal_class.full_signature: private void validateMessageMapper(final String mapper)
focal_class.identifier: validateMessageMapper
focal_class.modifiers: private
focal_class.parameters: (final String mapper)
focal_class.return: void
focal_class.signature: void validateMessageMapper(final String mapper)
focal_class.class_method_signature: DefaultMessageMapperRegistry.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DefaultMessageMapperRegistry.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      public List<MessageMapper> getMappers(final PayloadMapping payloadMapping) {
          return payloadMapping.getMappings().stream()
                  .map(this::resolveMessageMapper)
                  .map(resolvedMapper -> null == resolvedMapper ? defaultMapper : resolvedMapper)
                  .collect(Collectors.toList());
      }
focal_method.class_method_signature: DefaultMessageMapperRegistry.getMappers(final PayloadMapping payloadMapping)
focal_method.full_signature: @Override public List<MessageMapper> getMappers(final PayloadMapping payloadMapping)
focal_method.identifier: getMappers
focal_method.invocations: collect map map stream getMappings toList
focal_method.modifiers: @Override public
focal_method.parameters: (final PayloadMapping payloadMapping)
focal_method.return: List<MessageMapper>
focal_method.signature: List<MessageMapper> getMappers(final PayloadMapping payloadMapping)