Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix get{Min,Max}Elements() usage
[yangtools.git]
/
yang
/
yang-parser-rfc7950
/
src
/
test
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
stmt
/
DeviationResolutionTest.java
diff --git
a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/DeviationResolutionTest.java
b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/DeviationResolutionTest.java
index c3292d8f0fd74adac369f577dccbbaa99027139e..77170fe94b9463d4e6453940b14ea8b43de9608e 100644
(file)
--- a/
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/DeviationResolutionTest.java
+++ b/
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/DeviationResolutionTest.java
@@
-90,8
+90,8
@@
public class DeviationResolutionTest {
assertEquals(3, myLeafList.getDefaults().size());
final ElementCountConstraint constraint = myLeafList.getElementCountConstraint().get();
assertEquals(3, myLeafList.getDefaults().size());
final ElementCountConstraint constraint = myLeafList.getElementCountConstraint().get();
- assertEquals(
10, constraint.getMaxElements().intValue
());
- assertEquals(
5, constraint.getMinElements().intValue
());
+ assertEquals(
(Object) 10, constraint.getMaxElements
());
+ assertEquals(
(Object) 5, constraint.getMinElements
());
assertNotNull(myLeafList.getType().getUnits());
final ListSchemaNode myList = (ListSchemaNode) barModule.getDataChildByName(
assertNotNull(myLeafList.getType().getUnits());
final ListSchemaNode myList = (ListSchemaNode) barModule.getDataChildByName(
@@
-149,8
+149,8
@@
public class DeviationResolutionTest {
assertNotNull(myLeafList);
final ElementCountConstraint constraint = myLeafList.getElementCountConstraint().get();
assertNotNull(myLeafList);
final ElementCountConstraint constraint = myLeafList.getElementCountConstraint().get();
- assertEquals(
6, constraint.getMaxElements().intValue
());
- assertEquals(
3, constraint.getMinElements().intValue
());
+ assertEquals(
(Object) 6, constraint.getMaxElements
());
+ assertEquals(
(Object) 3, constraint.getMinElements
());
assertTrue(myLeafList.isConfiguration());
final ChoiceSchemaNode myChoice = (ChoiceSchemaNode) barModule.getDataChildByName(
assertTrue(myLeafList.isConfiguration());
final ChoiceSchemaNode myChoice = (ChoiceSchemaNode) barModule.getDataChildByName(