Fixed getTypeDefaultConstruction method in TypeProvider.
[yangtools.git] / code-generator / binding-generator-impl / src / test / java / org / opendaylight / yangtools / sal / binding / generator / impl / GenEnumResolvingTest.java
index e9ed3a982f0b9ad682c9a7679778ee4a65a37078..565c3b484933b6ce1eaac84fa31a079953b6248d 100644 (file)
@@ -105,8 +105,8 @@ public class GenEnumResolvingTest {
         assertNotNull("Generated Interface cannot contain NULL reference for " +\r
                 "Method Signature Definitions!", methods);\r
 \r
-        assertEquals("Expected count of method signature definitions is 14",\r
-                14, methods.size());\r
+        assertEquals("Expected count of method signature definitions is 15",\r
+                15, methods.size());\r
         Enumeration ianaIfType = null;\r
         for (final MethodSignature method : methods) {\r
             if (method.getName().equals("getType")) {\r
@@ -169,7 +169,7 @@ public class GenEnumResolvingTest {
         GeneratedType genInterface = null;\r
         for (final Type type : genTypes) {\r
             if (type instanceof GeneratedType) {\r
-                if (type.getPackageName().equals("org.opendaylight.yang.gen.v1.urn.model._abstract.topology.rev201328.topology.interfaces")\r
+                if (type.getPackageName().equals("org.opendaylight.yang.gen.v1.urn.model._abstract.topology.rev130208.topology.interfaces")\r
                         && type.getName().equals("Interface")) {\r
                     genInterface = (GeneratedType) type;\r
                 }\r
@@ -183,8 +183,8 @@ public class GenEnumResolvingTest {
         final List<MethodSignature> methods = genInterface.getMethodDefinitions();\r
         assertNotNull("Generated Type Interface cannot contain NULL reference" +\r
                 " to Enumeration types!", methods);\r
-        assertEquals("Generated Type Interface MUST contain 4 Methods ",\r
-                4, methods.size());\r
+        assertEquals("Generated Type Interface MUST contain 5 Methods ",\r
+                5, methods.size());\r
         for (final MethodSignature method : methods) {\r
             if (method.getName().equals("getLinkUpDownTrapEnable")) {\r
                 linkUpDownTrapEnable = method.getReturnType();\r
@@ -198,13 +198,13 @@ public class GenEnumResolvingTest {
         assertTrue("Expected LinkUpDownTrapEnable of type ReferencedTypeImpl",\r
                 linkUpDownTrapEnable instanceof ReferencedTypeImpl);\r
         assertEquals(linkUpDownTrapEnable.getPackageName(),\r
-                "org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev20121115.interfaces.Interface");\r
+                "org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev121115.interfaces.Interface");\r
 \r
         assertNotNull("Expected Referenced Enum OperStatus, but was NULL!",\r
                 operStatus);\r
         assertTrue("Expected OperStatus of type ReferencedTypeImpl",\r
                 operStatus instanceof  ReferencedTypeImpl);\r
         assertEquals(operStatus.getPackageName(),\r
-                "org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev20121115.interfaces.Interface");\r
+                "org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev121115.interfaces.Interface");\r
     }\r
 }\r