Skip to content

Commit df69c6e

Browse files
committed
Issue: Hashmap child annotation serialization unit test failing
Fix: Changed the string against which unit testing is being done. There is a odataType string member variable in Base class, which is overriden in one of the class which is being serialized. Hence @odata.type string should also be present in the serialized string for the object.
1 parent ef7c2f5 commit df69c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/microsoft/graph/serializer/AdditionalDataTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ public void testHashMapChildAnnotationData() {
7373

7474
String serializedObject = serializer.serializeObject(task);
7575

76-
assertEquals("{\"assignments\":{\"id\":{\"orderHint\":\"!\",\"additionalData\":\"additionalValue\"}}}", serializedObject);
76+
assertEquals("{\"assignments\":{\"id\":{\"@odata.type\":\"#microsoft.graph.plannerAssignment\",\"orderHint\":\"!\",\"additionalData\":\"additionalValue\"}},\"@odata.type\":\"#microsoft.graph.plannerTask\"}", serializedObject);
7777
}
7878
}

0 commit comments

Comments
 (0)