Lists with min-elements > 0 are mandatory
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / test / ListTest.java
index e3bec10f411ca0eaabe289accdca0f3725dc4047..edb33fc023d6fba12f701f713d6169c5630f389f 100644 (file)
@@ -81,7 +81,7 @@ public class ListTest {
 
         LeafListSchemaNode leafList = (LeafListSchemaNode) list.getDataChildByName("list-of-leaves");
         assertNotNull(leafList);
-        assertFalse(leafList.getConstraints().isMandatory());
+        assertTrue(leafList.getConstraints().isMandatory());
         assertTrue(leafList.isUserOrdered());
         assertEquals(2, leafList.getConstraints().getMinElements().intValue());
         assertEquals(20, leafList.getConstraints().getMaxElements().intValue());