Bug 2358 - Remove tests cnsn to json and add tests nn to json 15/22615/3
authorJakub Toth <jatoth@cisco.com>
Wed, 20 May 2015 21:34:52 +0000 (23:34 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 8 Jul 2015 14:20:29 +0000 (14:20 +0000)
commitea80e44b439b47c54cd9298c7e49decbb47734ba
tree45caa3f1941a4133741832ab94d54ab312bc2578
parentbcef29d20ca1ee8f84f43cd31057092974ad1a33
Bug 2358 - Remove tests cnsn to json and add tests nn to json

Tests of codecs are included in codecs yangtools yang-data-codec-gson and yang-data-impl but
we test codec on input data and also with presentation of Rest path.

* add test NnToJsonLeafrefType to nn/to/json/test
  * positive tests of leafref
    * absolut path
    * relative path
    * leafref to not leaf
    * from leaflist to leaf
    * from leafref to leafref
  * negative tests of leafref
    * non existing Leaf

Change-Id: I652204071d874d6c7a2a65e100dd68c16a12af8f
Signed-off-by: Jakub Toth <jatoth@cisco.com>
(cherry picked from commit 1f4b4062cbdd0cfadcf61e60bce9ee9e951c975c)
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/nn/to/json/test/NnToJsonLeafrefType.java [new file with mode: 0644]