Remove LeafSchemaNode.getUnits/getDefault()
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / YangParserTest.java
index 1694b84846bfa7e64b7e72a73bfa66c301cb0685..62e39c5340052698bb4ebb68abb19ff6224ebc1e 100644 (file)
@@ -159,7 +159,7 @@ public class YangParserTest {
             "ifIndex"));
         assertEquals(ifEntry.getKeyDefinition().get(0), ifIndex.getQName());
         assertTrue(ifIndex.getType() instanceof UnsignedIntegerTypeDefinition);
-        assertEquals("minutes", ifIndex.getUnits());
+        assertEquals("minutes", ifIndex.getType().getUnits());
         final LeafSchemaNode ifMtu = (LeafSchemaNode) ifEntry.getDataChildByName(QName.create(bar.getQNameModule(),
             "ifMtu"));
         assertEquals(BaseTypes.int32Type(), ifMtu.getType());