2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netconf.util.mapping;
11 import static org.junit.Assert.assertEquals;
13 import org.junit.Test;
14 import org.opendaylight.netconf.api.DocumentedException;
15 import org.opendaylight.netconf.api.xml.XmlElement;
16 import org.opendaylight.netconf.mapping.api.HandlingPriority;
17 import org.w3c.dom.Document;
18 import org.w3c.dom.Element;
20 public class AbstractSingletonNetconfOperationTest {
21 class SingletonNCOperationImpl extends AbstractSingletonNetconfOperation {
23 protected SingletonNCOperationImpl(String netconfSessionIdForReporting) {
24 super(netconfSessionIdForReporting);
28 protected Element handleWithNoSubsequentOperations(Document document,
29 XmlElement operationElement) throws DocumentedException {
34 protected String getOperationName() {
40 public void testAbstractSingletonNetconfOperation() throws Exception {
41 SingletonNCOperationImpl operation = new SingletonNCOperationImpl("");
42 assertEquals(operation.getHandlingPriority(), HandlingPriority.HANDLE_WITH_MAX_PRIORITY);