X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-testtool%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Ftest%2Ftool%2FSimulatedCommit.java;fp=opendaylight%2Fnetconf%2Fnetconf-testtool%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Ftest%2Ftool%2FSimulatedCommit.java;h=0000000000000000000000000000000000000000;hb=a6eaa85b523c7d96fdbb3f695dc3511d848bfef7;hp=db3717fab427ee123f20e8870886f475cc193b80;hpb=64376d224aee3e6469300f8cc2815af6c1fa0f44;p=controller.git diff --git a/opendaylight/netconf/netconf-testtool/src/main/java/org/opendaylight/controller/netconf/test/tool/SimulatedCommit.java b/opendaylight/netconf/netconf-testtool/src/main/java/org/opendaylight/controller/netconf/test/tool/SimulatedCommit.java deleted file mode 100644 index db3717fab4..0000000000 --- a/opendaylight/netconf/netconf-testtool/src/main/java/org/opendaylight/controller/netconf/test/tool/SimulatedCommit.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * 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.controller.netconf.test.tool; - -import com.google.common.base.Optional; -import org.opendaylight.controller.netconf.api.NetconfDocumentedException; -import org.opendaylight.controller.netconf.api.xml.XmlNetconfConstants; -import org.opendaylight.controller.netconf.confignetconfconnector.operations.AbstractConfigNetconfOperation; -import org.opendaylight.controller.netconf.util.xml.XmlElement; -import org.opendaylight.controller.netconf.util.xml.XmlUtil; -import org.w3c.dom.Document; -import org.w3c.dom.Element; - -class SimulatedCommit extends AbstractConfigNetconfOperation { - - SimulatedCommit(final String netconfSessionIdForReporting) { - super(null, netconfSessionIdForReporting); - } - - @Override - protected Element handleWithNoSubsequentOperations(final Document document, final XmlElement operationElement) throws NetconfDocumentedException { - return XmlUtil.createElement(document, XmlNetconfConstants.OK, Optional.absent()); - } - - @Override - protected String getOperationName() { - return XmlNetconfConstants.COMMIT; - } -}