Previously, a test was missing to make sure that the proper
type was registered in union type.
JIRA: NETCONF-1058
Change-Id: Ifd6ea086014e13de88ffd50bfb6b2fd1eeb05530
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
final var properties = schemas.get("definition-test_union-container").properties();
assertEquals("5", properties.get("testUnion1").defaultValue());
final var properties = schemas.get("definition-test_union-container").properties();
assertEquals("5", properties.get("testUnion1").defaultValue());
+ assertEquals("integer", properties.get("testUnion1").type());
+ assertEquals(-2147483648, properties.get("testUnion1").example());
assertEquals("false", properties.get("testUnion2").defaultValue());
assertEquals("false", properties.get("testUnion2").defaultValue());
+ assertEquals("string", properties.get("testUnion2").type());
+ assertEquals("Some testUnion2", properties.get("testUnion2").example());
+ assertEquals("integer", properties.get("testUnion3").type());
+ assertEquals(-2147483648, properties.get("testUnion3").example());
+ assertEquals("false", properties.get("testUnion3").defaultValue());