|
|
|
@ -168,8 +168,9 @@ public class GeofencingValueArgumentEntryTest { |
|
|
|
@Test |
|
|
|
void testInvalidKvEntryDataTypeForZoneResultInEmptyArgument() { |
|
|
|
BaseAttributeKvEntry invalidZoneEntry = new BaseAttributeKvEntry(new StringDataEntry("zone", "someString"), 363L, 155L); |
|
|
|
GeofencingArgumentEntry geofencingArgumentEntry = new GeofencingArgumentEntry(Map.of(ZONE_1_ID, invalidZoneEntry)); |
|
|
|
assertThat(geofencingArgumentEntry.isEmpty()).isTrue(); |
|
|
|
assertThatThrownBy(() -> new GeofencingArgumentEntry(Map.of(ZONE_1_ID, invalidZoneEntry))) |
|
|
|
.isExactlyInstanceOf(IllegalArgumentException.class) |
|
|
|
.hasMessage("The given string value cannot be transformed to Json object: someString"); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
|