Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hu-ahmed committed Jan 27, 2025
1 parent 5d5b2f8 commit 7125a94
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void testFromJson() {
.set("patchConditions", JsonFactory.newObjectBuilder()
.set("thing:/features/thermostat", "not(exists(/features/thermostat))")
.build())
.set("initializeProperties", true)
.set("initializeMissingPropertiesFromDefaults", true)
.build();

final MigrateThingDefinition command = MigrateThingDefinition.fromJson(json, DITTO_HEADERS);
Expand Down Expand Up @@ -163,7 +163,7 @@ public void toJsonReturnsExpected() {
Assertions.assertThat(json.getValueOrThrow(JsonFieldDefinition.ofString("thingId"))).isEqualTo(THING_ID.toString());
Assertions.assertThat(json.getValueOrThrow(JsonFieldDefinition.ofString("thingDefinitionUrl"))).isEqualTo("https://models.example.com/thing-definition-1.0.0.tm.jsonld");
Assertions.assertThat(json.getValueOrThrow(JsonFieldDefinition.ofJsonObject("migrationPayload"))).isEqualTo(MIGRATION_PAYLOAD);
Assertions.assertThat(json.getValueOrThrow(JsonFieldDefinition.ofBoolean("initializeProperties"))).isTrue();
Assertions.assertThat(json.getValueOrThrow(JsonFieldDefinition.ofBoolean("initializeMissingPropertiesFromDefaults"))).isTrue();
}

@Test
Expand Down

0 comments on commit 7125a94

Please sign in to comment.