Generalize validTopLevelNodeName() test 14/109114/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Nov 2023 22:08:05 +0000 (23:08 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Nov 2023 22:20:39 +0000 (23:20 +0100)
commit21c952f82f30c42f50abc4371c9fdb34a854415c
tree0c68e3157c4a8e4771e116137cc15e57a9f06166
parente3e29605a17addacac97dbad79b8b64296ae83da
Generalize validTopLevelNodeName() test

Assert the same violation in JSON/XML tests, which shows this method is
that XML is doing its own thing.

Since these are exercising this code path as they should, we can hide
the method and inline it.

Change-Id: I43d172283f4c0089726271e830b7e62f54b7db0c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/databind/ResourceBody.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/AbstractResourceBodyTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/JsonResourceBodyTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/ResourceBodyTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/XmlResourceBodyTest.java