Code Review
/
mdsal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not generate union builders
[mdsal.git]
/
binding
/
mdsal-binding-generator
/
src
/
test
/
java
/
org
/
opendaylight
/
mdsal
/
binding
/
generator
/
impl
/
GenerateInnerClassForBitsAndUnionInLeavesTest.java
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 d91f858cdffa06c7c9aba67fa7f6a66d1f36aa0d..0d6ffa8e2166cc0477211ecad5e950ddbc50fd67 100644
(file)
--- 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.assertEquals;
import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.List;
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() {
public class GenerateInnerClassForBitsAndUnionInLeavesTest {
@Test
public void testInnerClassCreationForBitsAndUnionsInLeafes() {
- final
List<GeneratedType>
genTypes = DefaultBindingGenerator.generateFor(YangParserTestUtils.parseYangResource(
+ final
var
genTypes = DefaultBindingGenerator.generateFor(YangParserTestUtils.parseYangResource(
"/bit_and_union_in_leaf.yang"));
"/bit_and_union_in_leaf.yang"));
- assertNotNull(genTypes);
- assertEquals(7, genTypes.size());
+ assertEquals(4, genTypes.size());
boolean parentContainerFound = false;
boolean bitLeafTOFound = false;
boolean parentContainerFound = false;
boolean bitLeafTOFound = false;