Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Mass conversion to static methods
[netconf.git]
/
restconf
/
sal-rest-connector
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
sal
/
restconf
/
impl
/
nn
/
to
/
xml
/
test
/
NnToXmlWithChoiceTest.java
diff --git
a/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/nn/to/xml/test/NnToXmlWithChoiceTest.java
b/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/nn/to/xml/test/NnToXmlWithChoiceTest.java
index d0f0ee0782078a8d52b472246829113f3ef317f7..dc77462eed40b1d917610157cba20eb39b79bf2a 100644
(file)
--- a/
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/nn/to/xml/test/NnToXmlWithChoiceTest.java
+++ b/
restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/nn/to/xml/test/NnToXmlWithChoiceTest.java
@@
-69,8
+69,7
@@
public class NnToXmlWithChoiceTest extends AbstractBodyReaderTest {
assertTrue(output.toString().contains("<lf2>String data2</lf2>"));
}
assertTrue(output.toString().contains("<lf2>String data2</lf2>"));
}
- private NormalizedNodeContext prepareNNC(final String name,
- final Object value) {
+ private static NormalizedNodeContext prepareNNC(final String name, final Object value) {
final QName contQname = QName.create("module:with:choice", "2013-12-18",
"cont");
final QName contQname = QName.create("module:with:choice", "2013-12-18",
"cont");
@@
-100,7
+99,7
@@
public class NnToXmlWithChoiceTest extends AbstractBodyReaderTest {
dataContainerNodeAttrBuilder.withChild(dataChoice.build());
final NormalizedNodeContext testNormalizedNodeContext = new NormalizedNodeContext(
dataContainerNodeAttrBuilder.withChild(dataChoice.build());
final NormalizedNodeContext testNormalizedNodeContext = new NormalizedNodeContext(
- new InstanceIdentifierContext<
DataSchemaNode
>(null,
+ new InstanceIdentifierContext<>(null,
contSchemaNode, null, schemaContext),
dataContainerNodeAttrBuilder.build());
contSchemaNode, null, schemaContext),
dataContainerNodeAttrBuilder.build());