Make sure we compare key members via their property name 50/76650/4
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 4 Oct 2018 15:17:42 +0000 (17:17 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 5 Oct 2018 06:32:17 +0000 (08:32 +0200)
commit1c202310534738d35898b31710f9c325de783ba5
tree1897053b88b0f76b41523cd08135ddba0d3bfee9
parent74bb34c8a674834fc8ff52dc6ada3a6d3170212a
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>
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]