Generate bindingToString() and use it in generated implementations
[mdsal.git] / binding / mdsal-binding-generator-impl / src / test / java / org / opendaylight / mdsal / binding / generator / impl / GenEnumResolvingTest.java
index ae0b74ea7c7d29c23851228696c83961872c0882..6869fd6922af2cfb0d6c02e4188c9d174730d468 100644 (file)
@@ -65,7 +65,8 @@ public class GenEnumResolvingTest {
 
         assertNotNull("Generated Interface cannot contain NULL reference for Method Signature Definitions!", methods);
 
-        assertEquals("Expected count of method signature definitions is 16", 16, methods.size());
+        // FIXME: split this into getter/default/static asserts
+        assertEquals(17, methods.size());
         Enumeration ianaIfType = null;
         for (final MethodSignature method : methods) {
             if (method.getName().equals("getType")) {
@@ -118,7 +119,9 @@ public class GenEnumResolvingTest {
         Type operStatus = null;
         final List<MethodSignature> methods = genInterface.getMethodDefinitions();
         assertNotNull("Generated Type Interface cannot contain NULL reference to Enumeration types!", methods);
-        assertEquals("Generated Type Interface MUST contain 6 Methods ", 6, methods.size());
+
+        // FIXME: split this into getter/default/static asserts
+        assertEquals(7, methods.size());
         for (final MethodSignature method : methods) {
             if (method.getName().equals("getLinkUpDownTrapEnable")) {
                 linkUpDownTrapEnable = method.getReturnType();