Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
Signed-off-by: Joos David (IOC/PAP-TH) <david.joos@bosch-si.com>
  • Loading branch information
Joos David (IOC/PAP-TH) committed Aug 25, 2020
1 parent 72aaa4d commit a834e20
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -25,6 +25,7 @@

import org.eclipse.ditto.json.JsonValue;
import org.eclipse.ditto.model.connectivity.MessageMapperConfigurationInvalidException;
import org.eclipse.ditto.model.placeholders.UnresolvedPlaceholderException;
import org.eclipse.ditto.model.things.Thing;
import org.eclipse.ditto.model.things.ThingsModelFactory;
import org.eclipse.ditto.protocoladapter.Adaptable;
Expand Down Expand Up @@ -134,9 +135,8 @@ public void throwErrorIfHeaderForPlaceholderIsMissing() {
final ExternalMessage externalMessage =
ExternalMessageFactory.newExternalMessageBuilder(missingEntityHeader).build();

final List<Adaptable> mappingResult = underTest.map(externalMessage);

assertThat(mappingResult).isEmpty();
assertThatExceptionOfType(UnresolvedPlaceholderException.class)
.isThrownBy(() -> underTest.map(externalMessage));
}

@Test
Expand Down

0 comments on commit a834e20

Please sign in to comment.