Eliminate ConstraintDefition.isMandatory()
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / yin / YinFileGroupingStmtTest.java
index fe6ed76155c6fac7c0cb68d853ccc66aa2669e5d..ab592aca2821d40f72f0f8e8aac115131348ec4e 100644 (file)
@@ -63,11 +63,11 @@ public class YinFileGroupingStmtTest {
         final LeafSchemaNode leaf1 = (LeafSchemaNode) grouping.getDataChildByName(QName.create(
                 testModule.getQNameModule(), "type"));
         assertNotNull(leaf1);
-        assertTrue(leaf1.getConstraints().isMandatory());
+        assertTrue(leaf1.isMandatory());
 
         final LeafSchemaNode leaf2 = (LeafSchemaNode) grouping.getDataChildByName(QName.create(
                 testModule.getQNameModule(), "name"));
         assertNotNull(leaf2);
-        assertTrue(leaf2.getConstraints().isMandatory());
+        assertTrue(leaf2.isMandatory());
     }
 }