test_class.declarator: underTest
test_class.modifier: private
test_class.original_string: private DittoMessageMapper underTest;
test_class.type: DittoMessageMapper
test_class.var_name: underTest
test_class.file: services/connectivity/mapping/src/test/java/org/eclipse/ditto/services/connectivity/mapping/DittoMessageMapperTest.java
test_class.identifier: DittoMessageMapperTest
test_case.body: @Test
      public void mapMessageFails() {
          createInvalidIncomingMappings().forEach((in, e) -> assertThatExceptionOfType(e.getClass()).isThrownBy(
                  () -> underTest.map(in)));
      }
test_case.class_method_signature: DittoMessageMapperTest.mapMessageFails()
test_case.full_signature: @Test public void mapMessageFails()
test_case.identifier: mapMessageFails
test_case.invocations: forEach createInvalidIncomingMappings isThrownBy assertThatExceptionOfType getClass map
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void mapMessageFails()
focal_class.declarator: DEFAULT_OPTIONS = JsonObject.newBuilder()
              .set(MessageMapperConfiguration.CONTENT_TYPE_BLOCKLIST,
                      String.join(",", "application/vnd.eclipse-hono-empty-notification",
                              "application/vnd.eclipse-hono-dc-notification+json"))
              .build()
focal_class.modifier: static final
focal_class.original_string: static final JsonObject DEFAULT_OPTIONS = JsonObject.newBuilder()
              .set(MessageMapperConfiguration.CONTENT_TYPE_BLOCKLIST,
                      String.join(",", "application/vnd.eclipse-hono-empty-notification",
                              "application/vnd.eclipse-hono-dc-notification+json"))
              .build();
focal_class.type: JsonObject
focal_class.var_name: DEFAULT_OPTIONS
focal_class.declarator: CONTEXT = ConnectivityModelFactory.newMappingContext(
              DittoMessageMapper.class.getCanonicalName(),
              DEFAULT_OPTIONS
      )
focal_class.modifier: public static final
focal_class.original_string: public static final MappingContext CONTEXT = ConnectivityModelFactory.newMappingContext(
              DittoMessageMapper.class.getCanonicalName(),
              DEFAULT_OPTIONS
      );
focal_class.type: MappingContext
focal_class.var_name: CONTEXT
focal_class.file: services/connectivity/mapping/src/main/java/org/eclipse/ditto/services/connectivity/mapping/DittoMessageMapper.java
focal_class.identifier: DittoMessageMapper
focal_class.class_method_signature: DittoMessageMapper.map(final ExternalMessage message)
focal_class.full_signature: @Override public List<Adaptable> map(final ExternalMessage message)
focal_class.identifier: map
focal_class.modifiers: @Override public
focal_class.parameters: (final ExternalMessage message)
focal_class.return: List<Adaptable>
focal_class.signature: List<Adaptable> map(final ExternalMessage message)
focal_class.class_method_signature: DittoMessageMapper.map(final Adaptable adaptable)
focal_class.full_signature: @Override public List<ExternalMessage> map(final Adaptable adaptable)
focal_class.identifier: map
focal_class.modifiers: @Override public
focal_class.parameters: (final Adaptable adaptable)
focal_class.return: List<ExternalMessage>
focal_class.signature: List<ExternalMessage> map(final Adaptable adaptable)
focal_class.class_method_signature: DittoMessageMapper.getDefaultOptions()
focal_class.full_signature: @Override public JsonObject getDefaultOptions()
focal_class.identifier: getDefaultOptions
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonObject
focal_class.signature: JsonObject getDefaultOptions()
focal_class.class_method_signature: DittoMessageMapper.extractPayloadAsString(final ExternalMessage message)
focal_class.full_signature: private static String extractPayloadAsString(final ExternalMessage message)
focal_class.identifier: extractPayloadAsString
focal_class.modifiers: private static
focal_class.parameters: (final ExternalMessage message)
focal_class.return: String
focal_class.signature: String extractPayloadAsString(final ExternalMessage message)
focal_class.class_method_signature: DittoMessageMapper.determineCharset(final Map<String, String> messageHeaders)
focal_class.full_signature: private static Charset determineCharset(final Map<String, String> messageHeaders)
focal_class.identifier: determineCharset
focal_class.modifiers: private static
focal_class.parameters: (final Map<String, String> messageHeaders)
focal_class.return: Charset
focal_class.signature: Charset determineCharset(final Map<String, String> messageHeaders)
focal_class.superclass: extends AbstractMessageMapper
focal_method.body: @Override
      public List<Adaptable> map(final ExternalMessage message) {
          final String payload = extractPayloadAsString(message);
          final JsonifiableAdaptable jsonifiableAdaptable = DittoJsonException.wrapJsonRuntimeException(() ->
                  ProtocolFactory.jsonifiableAdaptableFromJson(JsonFactory.newObject(payload))
          );
  
          final DittoHeaders mergedHeaders = jsonifiableAdaptable.getDittoHeaders();
          return singletonList(
                  ProtocolFactory.newAdaptableBuilder(jsonifiableAdaptable).withHeaders(mergedHeaders).build());
      }
focal_method.class_method_signature: DittoMessageMapper.map(final ExternalMessage message)
focal_method.full_signature: @Override public List<Adaptable> map(final ExternalMessage message)
focal_method.identifier: map
focal_method.invocations: extractPayloadAsString wrapJsonRuntimeException jsonifiableAdaptableFromJson newObject getDittoHeaders singletonList build withHeaders newAdaptableBuilder
focal_method.modifiers: @Override public
focal_method.parameters: (final ExternalMessage message)
focal_method.return: List<Adaptable>
focal_method.signature: List<Adaptable> map(final ExternalMessage message)