import org.junit.Test;
import org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.messagebus.eventaggregator.rev141202.TopicNotification;
import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
public class TopicDOMNotificationTest {
@Test
public void getTypeTest() {
- SchemaPath topicNotificationId = SchemaPath.create(true, TopicNotification.QNAME);
- assertEquals("Type has not been created correctly.", topicNotificationId, topicDOMNotification.getType());
+ assertEquals("Type has not been created correctly.", Absolute.of(TopicNotification.QNAME),
+ topicDOMNotification.getType());
}
@Test