X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fbinding-generator-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fgenerator%2Fimpl%2FAugmentedTypeTest.java;h=448f610c49ba42265e080324c0ce0023c758b8f7;hb=1e9531138e44cd757ca27b0d86e98eccb22ccd82;hp=19dfd9577f8224c589a5db90a8abc9ae61adc0bc;hpb=66b4fbc0fd997591f71745f514013484abb30175;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/AugmentedTypeTest.java b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/AugmentedTypeTest.java index 19dfd9577f..448f610c49 100644 --- a/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/AugmentedTypeTest.java +++ b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/java/org/opendaylight/controller/sal/binding/generator/impl/AugmentedTypeTest.java @@ -158,19 +158,23 @@ public class AugmentedTypeTest { final List networkLink2Methods = gtNetworkLink2.getMethodDefinitions(); assertNotNull("networkLink2Methods is null", networkLink2Methods); -// FIXME: in some cases getIfcMethod is null which causes test fail. fix ASAP -// MethodSignature getIfcMethod = null; -// for (MethodSignature method : networkLink2Methods) { -// if (method.getName().equals("getInterface")) { -// getIfcMethod = method; -// break; -// } -// } - -// assertNotNull("getIfcMethod is null", getIfcMethod); -// assertNotNull("getIfcMethod.getReturnType() is null", getIfcMethod.getReturnType()); -// assertFalse("getIfcMethod.getReturnType() should not be Void", getIfcMethod.getReturnType().equals("java.lang.Void")); -// assertTrue("getIfcMethod.getReturnType().getName() must be String", getIfcMethod.getReturnType().getName().equals("String")); + +// FIXME: in some cases getIfcMethod is null which causes test fail. fix ASAP +// MethodSignature getIfcMethod = null; +// for (MethodSignature method : networkLink2Methods) { +// if (method.getName().equals("getInterface")) { +// getIfcMethod = method; +// break; +// } +// } +// +// assertNotNull("getIfcMethod is null", getIfcMethod); +// assertNotNull("getIfcMethod.getReturnType() is null", +// getIfcMethod.getReturnType()); +// assertFalse("getIfcMethod.getReturnType() should not be Void", +// getIfcMethod.getReturnType().equals("java.lang.Void")); +// assertTrue("getIfcMethod.getReturnType().getName() must be String", +// getIfcMethod.getReturnType().getName().equals("String")); } @Test