Map bits type to primitive boolean
[mdsal.git] / binding / mdsal-binding-generator / src / test / java / org / opendaylight / mdsal / binding / generator / impl / GenerateInnerClassForBitsAndUnionInLeavesTest.java
index 0d6ffa8e2166cc0477211ecad5e950ddbc50fd67..e83510c2435efdaecc0eb0454620d8f0a4d9ffc2 100644 (file)
@@ -17,6 +17,7 @@ import org.opendaylight.mdsal.binding.model.api.GeneratedProperty;
 import org.opendaylight.mdsal.binding.model.api.GeneratedTransferObject;
 import org.opendaylight.mdsal.binding.model.api.GeneratedType;
 import org.opendaylight.mdsal.binding.model.ri.BaseYangTypes;
+import org.opendaylight.mdsal.binding.model.ri.Types;
 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
 
 public class GenerateInnerClassForBitsAndUnionInLeavesTest {
@@ -53,13 +54,13 @@ public class GenerateInnerClassForBitsAndUnionInLeavesTest {
                                 for (GeneratedProperty bitLeafProperty : bitLeafProperties) {
                                     if (bitLeafProperty.getName().equals("firstBit")) {
                                         firstBitPropertyFound = true;
-                                        assertEquals(BaseYangTypes.BOOLEAN_TYPE, bitLeafProperty.getReturnType());
+                                        assertEquals(Types.primitiveBooleanType(), bitLeafProperty.getReturnType());
                                     } else if (bitLeafProperty.getName().equals("secondBit")) {
                                         secondBitPropertyFound = true;
-                                        assertEquals(BaseYangTypes.BOOLEAN_TYPE, bitLeafProperty.getReturnType());
+                                        assertEquals(Types.primitiveBooleanType(), bitLeafProperty.getReturnType());
                                     } else if (bitLeafProperty.getName().equals("thirdBit")) {
                                         thirdBitPropertyFound = true;
-                                        assertEquals(BaseYangTypes.BOOLEAN_TYPE, bitLeafProperty.getReturnType());
+                                        assertEquals(Types.primitiveBooleanType(), bitLeafProperty.getReturnType());
                                     }
                                 }
                                 assertTrue(firstBitPropertyFound);