Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refactored parsing of YANG uses statement.
[controller.git]
/
opendaylight
/
sal
/
yang-prototype
/
code-generator
/
binding-generator-impl
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
sal
/
binding
/
generator
/
impl
/
GeneratedTypesBitsTest.java
diff --git
a/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/GeneratedTypesBitsTest.java
b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/GeneratedTypesBitsTest.java
index af08ac2d0a279eaf9cb0757391a5d43f512cd8b0..c98f8bfeae4b70bae858006d752f23b815409b65 100644
(file)
--- a/
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/GeneratedTypesBitsTest.java
+++ b/
opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/GeneratedTypesBitsTest.java
@@
-1,8
+1,6
@@
package org.opendaylight.controller.sal.binding.generator.impl;
package org.opendaylight.controller.sal.binding.generator.impl;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
import java.io.File;
import java.util.ArrayList;
import java.io.File;
import java.util.ArrayList;
@@
-134,10
+132,8
@@
public class GeneratedTypesBitsTest {
assertTrue(getByteLeafMethodFound);
assertEquals(nameReturnParamType,"ByteType");
assertTrue(getByteLeafMethodFound);
assertEquals(nameReturnParamType,"ByteType");
- assertTrue(setByteLeafMethodFound);
- assertEquals(setByteLeafMethodParamNum,1);
- assertEquals(nameMethodeParamType,"ByteType");
-
+ assertFalse(setByteLeafMethodFound);
+ assertEquals(0, setByteLeafMethodParamNum);
}
}
\ No newline at end of file
}
}
\ No newline at end of file