"org.opendaylight.yang.gen.v1.urn.bit.union.in.leaf.rev130626.ParentContainer",
lfLeaf.getIdentifier().immediatelyEnclosingClass().get().toString());
- assertEquals("Lf generated TO has incorrect number of properties", 3, lfLeaf.getProperties().size());
+ assertEquals("Lf generated TO has incorrect number of properties", 2, lfLeaf.getProperties().size());
containsAttributes(lfLeaf, true, true, true, new NameTypePattern("string", "String"));
containsAttributes(lfLeaf, true, false, true, new NameTypePattern("lf$1", "Lf$1"));
lf1Leaf.getIdentifier().immediatelyEnclosingClass().get().toString());
assertEquals("Lf generated TO has incorrect number of properties", 4, lf1Leaf.getProperties().size());
- containsAttributes(lf1Leaf, true, true, true, new NameTypePattern("uint32", "Long"));
+ containsAttributes(lf1Leaf, true, true, true, new NameTypePattern("uint32", "Uint32"));
containsAttributes(lf1Leaf, true, true, true, new NameTypePattern("int8", "Byte"));
containsAttributes(lf1Leaf, true, true, true, new NameTypePattern("string", "String"));
containsAttributes(lf1Leaf, true, false, true, new NameTypePattern("lf$2", "Lf$2"));
assertEquals("Lf generated TO has incorrect number of properties", 2, lf2Leaf.getProperties().size());
containsAttributes(lf2Leaf, true, true, true, new NameTypePattern("string", "String"));
- containsAttributes(lf2Leaf, true, true, true, new NameTypePattern("uint64", "BigInteger"));
+ containsAttributes(lf2Leaf, true, true, true, new NameTypePattern("uint64", "Uint64"));
}
@Test
assertEquals("TypeUnion has incorrect package name.",
"org.opendaylight.yang.gen.v1.urn.bit.union.in.leaf.rev130626", typeUnionTypedef.getPackageName());
- assertEquals("TypeUnion generated TO has incorrect number of properties", 3, typeUnionTypedef.getProperties()
+ assertEquals("TypeUnion generated TO has incorrect number of properties", 2, typeUnionTypedef.getProperties()
.size());
containsAttributes(typeUnionTypedef, true, true, true, new NameTypePattern("string", "String"));
containsAttributes(typeUnionTypedef, true, false, true, new NameTypePattern("typeUnion$1", "TypeUnion$1"));
assertEquals("TypeUnion$1 has incorrect package name.",
"org.opendaylight.yang.gen.v1.urn.bit.union.in.leaf.rev130626", typeUnion1.getPackageName());
- assertEquals("TypeUnion1 generated TO has incorrect number of properties", 4, typeUnion1.getProperties().size());
+ assertEquals("TypeUnion1 generated TO has incorrect number of properties", 4,
+ typeUnion1.getProperties().size());
- containsAttributes(typeUnion1, true, true, true, new NameTypePattern("uint32", "Long"));
+ containsAttributes(typeUnion1, true, true, true, new NameTypePattern("uint32", "Uint32"));
containsAttributes(typeUnion1, true, true, true, new NameTypePattern("int8", "Byte"));
containsAttributes(typeUnion1, true, true, true, new NameTypePattern("string", "String"));
containsAttributes(typeUnion1, true, false, true, new NameTypePattern("typeUnion$2", "TypeUnion$2"));
assertEquals("TypeUnion$2 has incorrect package name.",
"org.opendaylight.yang.gen.v1.urn.bit.union.in.leaf.rev130626", typeUnion2.getPackageName());
- assertEquals("TypeUnion2 generated TO has incorrect number of properties", 2, typeUnion2.getProperties().size());
+ assertEquals("TypeUnion2 generated TO has incorrect number of properties", 2,
+ typeUnion2.getProperties().size());
containsAttributes(typeUnion2, true, true, true, new NameTypePattern("string", "String"));
- containsAttributes(typeUnion2, true, true, true, new NameTypePattern("uint64", "BigInteger"));
+ containsAttributes(typeUnion2, true, true, true, new NameTypePattern("uint64", "Uint64"));
}
assertEquals("uint32 property has incorrect type", "Integer", uint32Property.getReturnType().getName());
assertEquals("string property has incorrect type", "String", stringProperty.getReturnType().getName());
- assertEquals("uint8 property has incorrect type", "Short", uint8Property.getReturnType().getName());
+ assertEquals("uint8 property has incorrect type", "Uint8", uint8Property.getReturnType().getName());
}