Make leafrefFromLeafListToLeafTest impervious to list order 44/23044/2
authorTom Pantelis <tpanteli@brocade.com>
Sat, 20 Jun 2015 09:06:56 +0000 (05:06 -0400)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 2 Jul 2015 11:14:34 +0000 (11:14 +0000)
commit3573880a7b68e6b7b2d66a6fa652288a04701133
treeec480950df3d05cf542b46168c8feaad21deaedd
parent1a41b7575f0daa0db6710bf84520c255ed325e1a
Make leafrefFromLeafListToLeafTest impervious to list order

In NnToJsonLeafrefType#leafrefFromLeafListToLeafTest, the leaf list is
unordered but the regex expects a certain order based on the way the
list is currently hashed. But this makes it susceptible to failure if
something changes upstream to alter the order. So I changed the regex to
not depend on the order.

Note: an upcoming yang tools patch will alter the order as a side effect
that affects this test.

Change-Id: Ibf95271b008134c3f75fc99c9ee7ba0d643dfe7a
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/nn/to/json/test/NnToJsonLeafrefType.java