diff --git a/client/integration-tests/additional-properties/src/test/java/io/quarkiverse/openapi/generator/additionalproperties/QuarkusAdditionalPropertiesAsAttributeTrueTest.java b/client/integration-tests/additional-properties/src/test/java/io/quarkiverse/openapi/generator/additionalproperties/QuarkusAdditionalPropertiesAsAttributeTrueTest.java
index 743118fff..5a7df32cc 100644
--- a/client/integration-tests/additional-properties/src/test/java/io/quarkiverse/openapi/generator/additionalproperties/QuarkusAdditionalPropertiesAsAttributeTrueTest.java
+++ b/client/integration-tests/additional-properties/src/test/java/io/quarkiverse/openapi/generator/additionalproperties/QuarkusAdditionalPropertiesAsAttributeTrueTest.java
@@ -9,6 +9,7 @@
import org.openapi.quarkus.with_additional_properties_as_attr_yaml.model.PriorityValue;
import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.quarkus.test.junit.QuarkusTest;
@@ -29,17 +30,20 @@ void when_additional_properties_is_true_then_should_create_additional_properties
void when_additional_properties_is_true_then_jackson_should_maps_the_additional_properties_correctly()
throws JsonProcessingException {
// arrange
- Priority priority = new org.openapi.quarkus.with_additional_properties_as_attr_yaml.model.Priority();
+ Priority priority = new Priority();
priority.setName("name");
- PriorityValue priorityValue = new PriorityValue();
- PriorityValue value = priorityValue.code(1).text("text");
+ PriorityValue value = new PriorityValue().code(1).text("text");
priority.setAdditionalProperty("value", value);
// act
- String json = objectMapper.writeValueAsString(priority);
+ String actualJson = objectMapper.writeValueAsString(priority);
+
+ // parse both into JsonNode
+ JsonNode actualNode = objectMapper.readTree(actualJson);
+ JsonNode expectedNode = objectMapper.readTree("{\"name\":\"name\",\"value\":{\"code\":1,\"text\":\"text\"}}");
// assert
- Assertions.assertThat(json).isEqualTo("{\"name\":\"name\",\"value\":{\"code\":1,\"text\":\"text\"}}");
+ Assertions.assertThat(actualNode).isEqualTo(expectedNode);
}
@Test
diff --git a/pom.xml b/pom.xml
index 74c367a87..ffad4a6e7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
17
UTF-8
UTF-8
- 3.23.3
+ 3.24.0
1.2.1.Final
3.27.0
3.27.3