Bug 3670 (part 1/5): Use of new statement parser in yang-maven-plugin
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / test / YangTypes2StmtTest.java
index 835eeb13ae4ef8e6e0e19032979c906a874a7386..d6203a555b2c106bd30effe73b9049de99a29071 100644 (file)
@@ -9,6 +9,9 @@ package org.opendaylight.yangtools.yang.stmt.test;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
+
+import org.opendaylight.yangtools.yang.model.util.ExtendedType;
+
 import java.net.URI;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.common.QName;
@@ -16,7 +19,6 @@ import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.common.SimpleDateFormatUtil;
 import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
 import org.opendaylight.yangtools.yang.model.util.BooleanType;
-import org.opendaylight.yangtools.yang.model.util.Decimal64;
 import org.opendaylight.yangtools.yang.model.util.Int16;
 import org.opendaylight.yangtools.yang.model.util.Int32;
 import org.opendaylight.yangtools.yang.model.util.Int64;
@@ -68,8 +70,8 @@ public class YangTypes2StmtTest {
 
         final LeafSchemaNode lfDecimalNode = (LeafSchemaNode) result.getDataChildByName(lfDecimal);
         assertNotNull(lfDecimalNode);
-        final Decimal64 lfDecimalNodeType = (Decimal64) lfDecimalNode.getType();
-        assertEquals(Decimal64.class, lfDecimalNodeType.getClass());
+        final ExtendedType lfDecimalNodeType = (ExtendedType) lfDecimalNode.getType();
+        assertEquals(ExtendedType.class, lfDecimalNodeType.getClass());
         assertEquals(2, lfDecimalNodeType.getFractionDigits().intValue());
 
         final LeafSchemaNode lfInt8Node = (LeafSchemaNode) result.getDataChildByName(lfInt8);