Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fail on validation of checkstyle set to true"
[controller.git]
/
opendaylight
/
md-sal
/
sal-rest-connector
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
sal
/
restconf
/
impl
/
json
/
to
/
cnsn
/
test
/
JsonLeafrefToCnSnTest.java
diff --git
a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/json/to/cnsn/test/JsonLeafrefToCnSnTest.java
b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/json/to/cnsn/test/JsonLeafrefToCnSnTest.java
index 59696bc534803935ab5c0c0126d0a43fc2c75fa5..c11c7dbbe7f9633b6fb14b57513a0f7bf5f997f8 100644
(file)
--- a/
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/json/to/cnsn/test/JsonLeafrefToCnSnTest.java
+++ b/
opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/json/to/cnsn/test/JsonLeafrefToCnSnTest.java
@@
-24,7
+24,7
@@
public class JsonLeafrefToCnSnTest extends YangAndXmlAndDataSchemaLoader {
@BeforeClass
public static void initialize() {
@BeforeClass
public static void initialize() {
- dataLoad("/json-to-cnsn/leafref");
+ dataLoad("/json-to-cnsn/leafref"
,2,"leafref-module","cont"
);
}
/**
}
/**
@@
-51,9
+51,7
@@
public class JsonLeafrefToCnSnTest extends YangAndXmlAndDataSchemaLoader {
}
assertNotNull(lf2);
}
assertNotNull(lf2);
- assertTrue(lf2.getValue() instanceof String);
- assertEquals("121", lf2.getValue());
-
+ assertEquals(121, lf2.getValue());
}
}
}
}