Make sure we compare key members via their property name 54/76654/6
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Oct 2018 15:17:42 +0000 (17:17 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Oct 2018 17:07:15 +0000 (19:07 +0200)
commitc4ef887d0f7655a9af798a232712b940eeb2e459
treead8796b893c05fec447567a71edbca8f708f317b
parenta804e1f6dc8b3ec80df49375ff106bcd407b4263
Make sure we compare key members via their property name

As it turns out, simple comparison ignoring cases does not correctly
work if the schema is using CamelCase. We need to do the hard work of
deriving Binding property name and sort on that to be consistent with
what the codegen does.

JIRA: MDSAL-355
Change-Id: I34cdb032fbdeb093e2973b91c5011e302e6280bc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit f1353f855b99a1f1fd2e5c32b0f58ecf83398600)
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/IdentifiableItemCodec.java
binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/test/InstanceIdentifierTest.java
binding/mdsal-binding-test-model/src/main/yang/mdsal-355.yang [new file with mode: 0644]