X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fsal-netconf-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fsal%2Fconnect%2Fnetconf%2FNetconfToNotificationTest.java;h=365acb668b0efd4ed06fe2297febf64ccdb162cd;hb=b4e31a7c0cf7ecfdc4160a379e26ded9fedf9ecb;hp=249bf065e85048ad8ce1401e3df6c6054523b6d9;hpb=faff6015823e0cfdeb16840ff69c9b22ea1ea1ef;p=netconf.git diff --git a/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/NetconfToNotificationTest.java b/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/NetconfToNotificationTest.java index 249bf065e8..365acb668b 100644 --- a/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/NetconfToNotificationTest.java +++ b/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/NetconfToNotificationTest.java @@ -29,7 +29,7 @@ import org.opendaylight.yangtools.yang.model.api.Module; import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils; import org.w3c.dom.Document; -public class NetconfToNotificationTest { +public class NetconfToNotificationTest extends AbstractBaseSchemasTest { NetconfMessageTransformer messageTransformer; @@ -65,14 +65,16 @@ public class NetconfToNotificationTest { @Test(expected = IllegalArgumentException.class) public void testMostRecentWrongYangModel() throws Exception { final EffectiveModelContext schemaContext = getNotificationSchemaContext(getClass(), true); - messageTransformer = new NetconfMessageTransformer(new EmptyMountPointContext(schemaContext), true); + messageTransformer = new NetconfMessageTransformer(new EmptyMountPointContext(schemaContext), true, + BASE_SCHEMAS.getBaseSchema()); messageTransformer.toNotification(userNotification); } @Test public void testToNotificationFunction() throws Exception { final EffectiveModelContext schemaContext = getNotificationSchemaContext(getClass(), false); - messageTransformer = new NetconfMessageTransformer(new EmptyMountPointContext(schemaContext), true); + messageTransformer = new NetconfMessageTransformer(new EmptyMountPointContext(schemaContext), true, + BASE_SCHEMAS.getBaseSchema()); final DOMNotification domNotification = messageTransformer.toNotification(userNotification); final ContainerNode root = domNotification.getBody(); assertNotNull(root);