X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FDeviationResolutionTest.java;h=77170fe94b9463d4e6453940b14ea8b43de9608e;hb=84042e088ccb7b75e52bb3edc3dbb63af1d119df;hp=c3292d8f0fd74adac369f577dccbbaa99027139e;hpb=223f7753e408b981b0f077d14ede44b8037425c8;p=yangtools.git 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 c3292d8f0f..77170fe94b 100644 --- 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(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( @@ -149,8 +149,8 @@ public class DeviationResolutionTest { 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(