Binding Generator Implementation & decomposition
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / src / test / java / org / opendaylight / mdsal / binding / javav2 / generator / impl / AugmentToGenTypeTest.java
index b2aff19aadfce03a65dcda0dcd3d08d4d4e202a5..741d9b7827de4a3ee4a3322c7b3a75b1834e1429 100644 (file)
@@ -1187,6 +1187,8 @@ public class AugmentToGenTypeTest {
         when(module.getName()).thenReturn("test-module-case");
         final DataSchemaNode schemaNode = mock(DataSchemaNode.class);
         when(module.getDataChildByName(qnamePath)).thenReturn(schemaNode);
+        when(module.getRevision()).thenReturn(qnamePath.getRevision());
+        when(module.getNamespace()).thenReturn(qnamePath.getNamespace());
         final String pckgName = "test.augment.choice.cases";
         final Type targetType = mock(Type.class);
         final Set<DataSchemaNode> augmentNodes = new HashSet<>();
@@ -1242,6 +1244,8 @@ public class AugmentToGenTypeTest {
         final ChoiceCaseNode schemaNode = mock(ChoiceCaseNode.class);
         when(schemaNode.getPath()).thenReturn(path);
         when(module.getDataChildByName(qnamePath)).thenReturn(schemaNode);
+        when(module.getRevision()).thenReturn(qnamePath.getRevision());
+        when(module.getNamespace()).thenReturn(qnamePath.getNamespace());
         final String pckgName = "test.augment.choice.cases";
         final Type targetType = mock(Type.class);
         final Set<DataSchemaNode> augmentNodes = new HashSet<>();