X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-generator%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fgenerator%2Fimpl%2FGenerateInnerClassForBitsAndUnionInLeavesTest.java;h=0d6ffa8e2166cc0477211ecad5e950ddbc50fd67;hb=31776f5c9d96892e93b8378ca09dc0c3caa41c2c;hp=d91f858cdffa06c7c9aba67fa7f6a66d1f36aa0d;hpb=0efe5a0d2cffb6a2e4e78570f79f367cc234d74e;p=mdsal.git diff --git a/binding/mdsal-binding-generator/src/test/java/org/opendaylight/mdsal/binding/generator/impl/GenerateInnerClassForBitsAndUnionInLeavesTest.java b/binding/mdsal-binding-generator/src/test/java/org/opendaylight/mdsal/binding/generator/impl/GenerateInnerClassForBitsAndUnionInLeavesTest.java index d91f858cdf..0d6ffa8e21 100644 --- a/binding/mdsal-binding-generator/src/test/java/org/opendaylight/mdsal/binding/generator/impl/GenerateInnerClassForBitsAndUnionInLeavesTest.java +++ b/binding/mdsal-binding-generator/src/test/java/org/opendaylight/mdsal/binding/generator/impl/GenerateInnerClassForBitsAndUnionInLeavesTest.java @@ -9,7 +9,6 @@ package org.opendaylight.mdsal.binding.generator.impl; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.List; @@ -23,10 +22,9 @@ import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils; public class GenerateInnerClassForBitsAndUnionInLeavesTest { @Test public void testInnerClassCreationForBitsAndUnionsInLeafes() { - final List genTypes = DefaultBindingGenerator.generateFor(YangParserTestUtils.parseYangResource( + final var genTypes = DefaultBindingGenerator.generateFor(YangParserTestUtils.parseYangResource( "/bit_and_union_in_leaf.yang")); - assertNotNull(genTypes); - assertEquals(7, genTypes.size()); + assertEquals(4, genTypes.size()); boolean parentContainerFound = false; boolean bitLeafTOFound = false;