* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-package org.opendaylight.netconf.util.mapping;
+package org.opendaylight.netconf.server.api.operations;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.opendaylight.netconf.api.DocumentedException;
import org.opendaylight.netconf.api.xml.XmlElement;
import org.opendaylight.netconf.api.xml.XmlUtil;
-import org.opendaylight.netconf.mapping.api.HandlingPriority;
-import org.opendaylight.netconf.mapping.api.NetconfOperationChainedExecution;
import org.opendaylight.netconf.util.test.XmlFileLoader;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;
public class AbstractNetconfOperationTest {
- static class NetconfOperationImpl extends AbstractNetconfOperation {
+ private static class NetconfOperationImpl extends AbstractNetconfOperation {
public boolean handleRun;
- protected NetconfOperationImpl(final String netconfSessionIdForReporting) {
+ NetconfOperationImpl(final String netconfSessionIdForReporting) {
super(netconfSessionIdForReporting);
- this.handleRun = false;
}
@Override
@Override
protected Element handle(final Document document, final XmlElement message,
final NetconfOperationChainedExecution subsequentOperation) throws DocumentedException {
- this.handleRun = true;
+ handleRun = true;
try {
return XmlUtil.readXmlToElement("<element/>");
} catch (SAXException | IOException e) {