Skip to content

Commit 676031b

Browse files
Apply suggestions from code review
Co-authored-by: Alexander Dümont <[email protected]>
1 parent 18336c8 commit 676031b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

datamodel/openapi/openapi-api-sample/src/test/java/com/sap/cloud/sdk/datamodel/openapi/sample/api/OneOfDeserializationTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,13 @@ void allOf()
9494
AllOf allOfCola = newDefaultObjectMapper().readValue(cola, AllOf.class);
9595
assertThat(allOfCola.getSodaType()).isEqualTo("Cola");
9696
assertThat(allOfCola.isCaffeine()).isTrue();
97+
assertThat(allOfCola.getColor()).isNull();
98+
9799

98100
AllOf allOfFanta = newDefaultObjectMapper().readValue(fanta, AllOf.class);
99101
assertThat(allOfFanta.getSodaType()).isEqualTo("Fanta");
100102
assertThat(allOfFanta.getColor()).isEqualTo("orange");
103+
assertThat(allOfFanta.isCaffeine()).isNull();
101104
}
102105

103106
/**

0 commit comments

Comments
 (0)